前提・実現したいこと
background-imageで表示した画像にborder-radius:50%をかけたいのですが、うまい具合に丸くなりません
絶対条件としてbackground-sizeはcontainであること
width、heightは%のみを指定できることです
出力結果は<img src="https://www.seo-pro.jp/seo/wp-content/uploads/2019/05/eycatch-2.jpg" style="border-radius:50%">と同じ状態にしたいです
該当のソースコード
HTML
1<div style="width:10%;height:10%;"> 2<div style="width:150%;height:150%;background:transparent url('https://www.seo-pro.jp/seo/wp-content/uploads/2019/05/eycatch-2.jpg') no-repeat center;background-size:contain;border-radius:50%"> 3</div> 4</div>

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。