製作滑鼠移動到div上面顯示彈出框

2021-09-09 02:12:40 字數 1859 閱讀 6455

>三代親子嘉年華

span

>

<

span

class

="info"

>

<

span

class

="username"

>周乃容

span

>

<

span

class

="split"

>|

span

>

<

img

src="/resources/img/livesupport/live/zbbfcs_1.png"

>

<

span

class

="playcount"

>3.6萬

p>作者唐朝詩人白居易。草原上的野草 生長得很茂盛,每到秋天就枯黃了, 這樣年復一年。野火燒得也不可能。

p>

footer

>

div>

/*

dialog

*/.show-dialog .show-dialog>header .show-dialog>header>.note>span .show-dialog>header>.note>.title .show-dialog>header>.note>.info .show-dialog>header>.note>.info>.split .show-dialog>header>.note>.info>.playcount, .show-dialog>header>.note>.info>.viewcount .show-dialog>footer .show-dialog>footer>img .show-dialog>footer>p

$('.default-right>li').hover(function

(e) ).removeclass('hide');

}, function

(e) );

總結:1、jquery使用offset()比position()更精確

製作滑鼠移動到div上面顯示彈出框

三代親子嘉年華 span span class info span class username 周乃容 span span class split span img src resources img livesupport live zbbfcs 1.png span class playcou...

滑鼠移動到文字,顯示DIV的資訊

頁面檔案 nm use ut hidepopup js檔案 滑鼠移入顯示div function trigger event,pk accnt var html hotelmanager.web.general.acccenter.mainaccount.getweek pk accnt value...

滑鼠懸浮div同步顯示

滑鼠懸浮在div1標籤上時,顯示對應的div2資訊層,同時滑鼠在div2資訊層上時,div2不隱藏。只有離開div1或者div2時,隱藏div2資訊層 1 div1和div2之間不能有空隙 1 方法1 完成 class div1 div class div2 內容內容內span div var bt...