4
我需要在css形状内放置一些文本。我已经完成了这个形状。现在我的问题是,如何根据文本内容的高度来调整形状的高度?现在内容比形状更长。css形状内的随机文本
下面是代码:http://jsfiddle.net/uE6x4/
<div class="trapezoid">
A hella lot of lorem ipsum text goes here to test the freakin' trapezoid!
</div>
.trapezoid {
height: 0;
width: 80px;
border-bottom: 80px solid blue;
border-left: 40px solid transparent;
}
嗨尤里,谢谢! – Dr3am3rz