div{
float:left;
width:100px;
height:80px;
background-color: silver;
}
div img{
position: relative; top: 2px;
}
<div bgcolor="#FFCCCC" onMouseOver=this.style.backgroundColor='#000000' onMouseOut=this.style.backgroundColor=''>
<img src="xxxxxxxx" />
</div>
css笔记
最新推荐文章于 2024-10-12 10:09:54 发布