使用Gilder/Levin替换技术替换文本

来源:互联网 发布:银行获取银联刷卡数据 编辑:程序博客网 时间:2024/04/30 00:33

--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>

 

此方法用来修饰文本及替换文本,定位图片也相当不错

原创粉丝点击