你的位置:首页 > 网页设计

[网页设计]css实现隐藏显示


<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<style>
.trans-fadeout{
-webkit-transition:all 1s linear;
-moz-transition:all 1s linear;
-ms-transition:all 1s linear;
-o-transition:all 1s linear;
transition:all 1s linear;
}
.image-fadeout{ position:absolute;opacity:0 }
.hover-fadeout:hover .image-fadeout{ opacity:1 }


</style>
</head>
<body>

<div >

<img src="http://image.zhangxinxu.com/image/study/s/s256/mm1.jpg" />
<a href="#" >经过我显示图片</a>
</div>