DIV 1具有mouseover
事件示出DIV 2和具有mouseleave
事件隱藏DIV 2,當DIV 2表明,如何可以阻止DIV 1事件當我的指針結束DIV 2? mouseleave
事件現在讓我閃爍](DIV 2最大z-index
比DIV 1)
Q
座事件
0
A
回答
1
您可以使用stopPropagation()。
1
可以通過嵌套兩個div的和父母申請懸停: CSS例子: http://liveweave.com/qtwQOE
編輯:減少父DIV的大小對其內容,更改CSS佈局顯示: http://liveweave.com/94tdXW
0
有U期待着什麼這樣JSFIDDLE
的Jquery:
$(document).ready(function(){
$(".red").mouseenter(function(){
$(".yellow").show("slow");
});
$(".red").mouseleave(function(){
$(".yellow").hide("slow");
});
});
相關問題
- 1. Freeswitch事件插座
- 2. 座PictureBox的接收事件的C#
- 3. 航行插座聆聽範圍事件
- 4. C#插座BeginAccept事件停止射擊
- 5. Angular2路由器插座組件事件發送(A2> = v1.2.0)
- 6. 如何找到故事板插座連接的文件?
- 7. 扇子:客戶端插座輸入(如何對打印事件)
- 8. 代表,插座和鼠標事件的類設計
- 9. 如何將插座連接到目標中的事件-C
- 10. 選擇()上的插座,另一事件機制
- 11. 如何當插座拔掉觸發事件
- 12. 角不適更改陣列(去除插座事件項目)
- 13. 抽象插座IO服務器從事件名稱
- 14. 溝通一個按鈕點擊事件與插座
- 15. 座元件內聯塊
- 16. Wav文件傳輸插座
- 17. AS3插座 - 政策文件
- 18. 插座傳輸文件
- 19. Flex插座到插座
- 20. 插座與插座集合
- 21. EXC_BAD_ACCESS上一座座 「回調」
- 22. 文件的所有者插座vs查看的插座
- 23. POSIX插座VS網絡插座VS Windows TCP/IP插座
- 24. 通過使插座事件驅動使udp套接字非阻塞
- 25. 獵戶座通知天鵝座
- 26. 獵戶座不通知天鵝座
- 27. 劇院座位圖像(座位狀態)
- 28. 座到PHP直接訪問文件
- 29. 發送和接收文件與插座
- 30. 綁定託座延伸反應組件
發表的jsfiddle好嗎? – lifetimes