用jq:
$(document).ready(function(){
$('#picList div').mouseover(function(){
$(this).find('a').attr('top',0);
});
mouseout類似
})
$(document).ready(function(){
$('#picList div').mouseover(function(){
$(this).find('a').attr('top',0);
});
mouseout類似
})
2015-08-24
.try li span{
color:#fff;
font-size: 16px;
position: relative;
bottom: 39px;
width: 225px;
height: 34px;
line-height: 40px;
filter:alpha(opacity=50);
-moz-opacity:0.5;
opacity:0.5;
-khtml-opacity:0.5;
background-color: #000;
text-align: left;
display: none;
}
color:#fff;
font-size: 16px;
position: relative;
bottom: 39px;
width: 225px;
height: 34px;
line-height: 40px;
filter:alpha(opacity=50);
-moz-opacity:0.5;
opacity:0.5;
-khtml-opacity:0.5;
background-color: #000;
text-align: left;
display: none;
}
2015-08-20
最贊回答 / Leyoz
你寫 0% ?事實上就是 left:0了,此時 right=100% 就不能生效了。而 left: auto; 是left的值 自適應(yīng);此時 會根據(jù) right 的值 去 自適應(yīng)left的值如果你要用left寫的話 ?可以寫成left:-100%
2015-08-02
已采納回答 / 曉得迷路了
括號后函數(shù)就立即執(zhí)行了。這樣會把showMeg的返回值付給onmouseover沒括號把函數(shù)引用賦值 var a =showMeg;a()與showMeg()一樣
2015-08-02