假设我有一个宽度为 500、高度为 700 的 div。如何将水平线或图像作为特定高度的背景? 我也在这里发布了http://jsfiddle.net/jt74S/
<div id="main">
these are some text and stuff, however the horizontal line/image should not be added with the text, but as a background of these.
</div>
#main {
background: none repeat scroll 0 0 rgba(56, 56, 56, 0.75);
border-radius: 0 3px 0 3px;
float: left;
font-size: 48px;
line-height: 44px;
padding: 20px;
}
最佳答案
关于javascript - 如何在div中的指定高度添加水平线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11605738/