我有一个网页,其中我有hr
个标签来分隔页面中的部分。
我使用css将图像作为hr标记的背景应用。
hr标记的宽度为100%,但图像不占用整个标记。
如何强制图片占据hr
代码占用的整个区域?
是否有任何拉伸属性可用于端到端拉伸图像?
以下是代码:
hr
{
background: url("images/new/edge-top.png") no-repeat scroll 0 0 transparent;
color: transparent;
height: 10px;
margin: 0 auto;
width: auto;
clear: both;
border: 0 none;
display: block;
padding: 0px;
}
在此处检查生成的图像: