假设我有一个500宽和700高的div。如何在特定高度上放置水平线或图像作为背景? 我已经张贴在这里也http://jsfiddle.net/jt74S/如何在div的指定高度添加水平线?
<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;
}
请问您能举个例子吗? – EnexoOnoma 2012-07-23 02:29:38
谢谢你,但我必须保持'背景:无重复滚动0 0 rgba(56,56,56,0.75);' – EnexoOnoma 2012-07-23 02:53:51