假设我有一个 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;
}