.bg{ pointer-events: none; //在CSS中加這段即可 }
不過IE似乎問題不少,但這篇HTML/CSS make clickable through transparent DIV layer有提到覺得IE很麻煩設定,可以試著用這個Pointer Events Polyfill
參考網址:
Click through a DIV to underlying elements
HTML/CSS make clickable through transparent DIV layer
Pointer-events:none or Click Through div
沒有留言:
張貼留言