国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - The div is a link. When the mouse is moved up, a div will appear, such as a view more button. How to do this?
怪我咯
怪我咯 2017-07-05 10:40:58
0
4
981

p is a link. If you move the mouse up, a p will appear, such as a view more button. How to do this?

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(4)
typecho

Just listen to the mouseenter event and then display the p or button

洪濤

Use css for hover

伊謝爾倫
/* 1.css */
.more{display:none};
p:hover .more{display:block}
//2.js
$('p').hover(function(){
$('.more').show();
})

http://jsbin.com/tiqenecata/e...

學(xué)霸

html:
<p>

<p class="a">假如我是一個(gè)鏈接</p>
<p class="b">點(diǎn)我查看更多</p>

<p>

js (load jQuery library):

$(function(){

    $(".b").css("display","none");      //初始化隱藏按鈕
    $(".a").hover(function(){           //鼠標(biāo)移入移出函數(shù)
        $(".b").css("dispaly","block")  //移入顯示
    },function(){    
        $(".b").css("dispaly","none")   //移出隱藏
    })  

})

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template