CSS给图片打标

时间:2015/12/2 15:18:00来源:互联网 作者:flyso 点击: 809 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>www.flyso.cn--CSS给图片打标</title>
<style>
body{padding:0px; margin:20px;}
.pic{background:#000; padding:5px; border:1px solid #4F4F4F; float:left;}
.pic span{width:95px; height:95px; background:url(/myfile/images/sign.gif); position:absolute; margin:-6px 0 0 -6px;}
</style>
</head>
 
<body>
<div class="pic">
<span></span>
<img src="/myfile/pic/plmm.jpg" width=400/>
</div>
</body>
</html>


Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3