absolute positioned anchor tag (with no text) not clickable in IE

前端 未结 6 915
青春惊慌失措
青春惊慌失措 2020-12-07 15:18

I have two anchors positioned absolute on top of an image, the links are clickable in other browsers (Chrome, FF, Safari) but not in IE (tested in 8 & 9 so far)

6条回答
  •  情歌与酒
    2020-12-07 16:09

    Transplanted from a comment I posted some time ago.

    Little longer, but still no traffic, base 64 encoded transparent gif:

    background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICR‌​AEAOw==')
    

    This has its own pros/cons, but can be useful. Also:

    background-color: rgba(0,0,0,0)
    

    I've used this one more recently

提交回复
热议问题