神奇的css屬性pointer-events

來源:互聯網
上載者:User

這絕對位置元素蓋住連結或添加某事件handle的元素後,那麼該連結的預設行為(頁面跳轉)或元素事件將不會被觸發。

現在Firefox3.6+/Safari4+/Chrome支援一個稱為pointer-events的css屬性。使用該屬性可以決定是否能穿透絕對位置元素去觸發下面元素的某些行為。

如下:

Baidu Baidu


SPAN element

穿透點擊

相關資源:

https://developer.mozilla.org/en/CSS/pointer-events

原文地址

http://www.javaeye.com/topic/696663

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.