overlay on clickable region - CSS

前端 未结 3 736
旧时难觅i
旧时难觅i 2020-12-19 06:31

Is there a way I can have a partially transparent image (or anything really) overlay a clickable region using XHTML and CSS?

3条回答
  •  春和景丽
    2020-12-19 07:17

    @thirtydot If you know of a solution that works in only one browser I still would love to here it! Although the more support the better.

    You can use pointer-events: none.

    Browser support: http://caniuse.com/pointer-events (works everywhere except IE10 and older)

    http://jsfiddle.net/QC5Yw/

提交回复
热议问题