当鼠标移动到图片上的时候,黑色蒙版缓慢显示
css
<style type="text/css">
#out{
width:100px;
height:100px;
background:black;
}
#inner{
width:100px;
height:100px;
display:none;
background:red;
}
</style>
html
<div id="out">
<div id="inner"></div>
</div>
js
<script>
function (){
$("#inner").fadeIn(1000);
}
function (){
$("#inner").fadeOut(1000);
}
</script>
># 注意jquery大小写