【发布时间】:2018-01-21 19:22:10
【问题描述】:
我有一种情况,我希望能够对 div 的右侧进行轻微的四舍五入。是否有任何 CSS 魔法可以实现这一点?如果是这样,请演示使用这个小提琴模板:http://jsfiddle.net/z2hejemu/
HTML
<div class="rounded-side">
<p>This div is by default rectangular in shape. I'd like the right side of it to be rounded, if that's possible. </p>
</div>
CSS
div.rounded-side {background-color:yellow;padding:10px;}
div.rounded-side > p {font-size: 36px;}
【问题讨论】: