[英]How do I align my image in the ReactJS in the ProfilePage.jsx file? And how do I add a double border?
return (
<div className = "mx-auto w-11/12 md:w-2/4 py-8 px-4 md:px-8">
<div className="flex border flex-col items-center md:flex-row md:items-start border-blue-400 px-3 py-4">
<div
style={{
background: `url(${photoURL || 'https://res.cloudinary.com/dqcsk8rsc/image/upload/v1577268053/avatar-1-bitmoji_upgwhc.png'}) no-repeat center center`,
backgroundSize: "cover",
height: "110px",
width: "110px",
borderRadius: "80px",
border: 'solid 6.5px #E6CDF2',
您好,我正在嘗試使用 AlignContent 和 justifyContent 對齊此圖片,但沒有任何效果。 這是我在 ProfilePage.jsx 文件中用於設計圖像的代碼。 我不確定如何對齊它。 還想知道如何(如果可能)在這里添加雙邊框。
嘗試使用 AlignItems 而不是 AlignContent。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.