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

前端 未结 6 928
青春惊慌失措
青春惊慌失措 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:07

    I had the same problem. My working solution was to add a border to the appropriate anchor. Like the following example. One advantage is, you need no extra image.

    a { border-right: 1px solid transparent }
    

提交回复
热议问题