-2
画像を楕円形に折り返したいが、テキストは画像の上に重なっている。 wraping要素(イメージなど)のプロパティなどを変更しようとしましたが、機能しません。以下は私のHTMLとCSSのコードは次のとおりです。画像を曲線の形で包む
HTML:
<div id="circular-shape">
<img src="blackberries-basket.jpg" class="curve">
<p>/*...text to wrap around circle side...*/
</p>
</div>
CSS:私は左の画像を重ね/触れるからテキストを停止することができますどのように
#circular-shape {
font-family: Open Sans, sans-serif;
margin: 2rem;
}
#circular-shape p {
line-height: 1.8;
}
#circular-shape .curve {
width: 33%;
height: 33%;
min-width: 250px;
float: left;
border-radius: 50%;
-webkit-shape-outside:circle();
shape-outside:circle();
}
。助けてください。
http://alistapart.com/article/css-shapes-101 – CBroe
https://www.html5andbeyond.com/wrap-text-周囲のイメージを使用したCSSの形の輪郭/ –
https://css-tricks.com/almanac/properties/s/shape-outside/ –