CSS相框效果示例代码
(编辑:jimmy 日期: 2025/2/27 浏览:3 次 )

效果图
1、CSS样式
复制代码代码如下:
.pic .box{
background:url(/MyDemo/images/round1.png) no-repeat;
width:60px;
height:60px;
display:block;
_background:none;
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/UploadFiles/2021-03-30/round1.png">position:absolute;
width:60px;
height:60px;
z-index:9999;
}
.pic img{
width:60px;
height:60px;
}
2、HTML代码
复制代码代码如下:
<!--相框-->
<div class="pic">
<span class="box"></span>
<img src="/UploadFiles/2021-03-30/myPic.jpg"></div>
附件

round.png
下一篇:火狐在用offsetHeight获取div的高度时为0的解决方法