--style--
h1{
width:216px;
height:72px;
position:relative;
}
h1 span{
background:url(replacement.png) no-repeat;
position:absolute;
width:100%;
height:100%;
}
--html--
<h1><span></span>replacement</h1>
此方法用来修饰文本及替换文本,定位图片也相当不错
--style--
h1{
width:216px;
height:72px;
position:relative;
}
h1 span{
background:url(replacement.png) no-repeat;
position:absolute;
width:100%;
height:100%;
}
--html--
<h1><span></span>replacement</h1>
此方法用来修饰文本及替换文本,定位图片也相当不错