84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
p is a link. If you move the mouse up, a p will appear, such as a view more button. How to do this?
走同样的路,发现不同的人生
Just listen to the mouseenter event and then display the p or button
Usecssforhover
css
hover
/* 1.css */ .more{display:none}; p:hover .more{display:block}
//2.js $('p').hover(function(){ $('.more').show(); })
http://jsbin.com/tiqenecata/e...
html:
假如我是一个链接 点我查看更多
假如我是一个链接
点我查看更多
js (load jQuery library):
$(function(){
$(".b").css("display","none"); //初始化隐藏按钮 $(".a").hover(function(){ //鼠标移入移出函数 $(".b").css("dispaly","block") //移入显示 },function(){ $(".b").css("dispaly","none") //移出隐藏 })
})
Just listen to the mouseenter event and then display the p or button
Use
css
forhover
http://jsbin.com/tiqenecata/e...
html:
js (load jQuery library):
$(function(){
})