Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正方形の画像 (90 度の角) を境界線半径のコンテンツ cox の後ろに隠す方法。
これはiPhoneモバイルアプリ用です。
上に揃える http://www.kerrydeaf.com/corner.png
border-radiusプロパティが W3C によって最初に発表されたとき、私はこの問題を抱えていました。解決策が必要です。まず、 を使用background-imageして、画像をdivの背景として設定します。次に、 を使用し、ではなくタグ<img class="my-class-rounded-corners" src="myimage">にクラスを追加し、そのクラスのプロパティとして角丸を設定します。<img>div
border-radius
background-image
div
<img class="my-class-rounded-corners" src="myimage">
<img>