Problem with IE when using display:block for links

前端 未结 7 1863
半阙折子戏
半阙折子戏 2021-02-07 15:50

This is my HTML:

Link 1 Link 2 Link 3 <
7条回答
  •  日久生厌
    2021-02-07 16:39

    Ok, the fix for this problem is to give the anchors a background property other than transparent. Some proposed to give the anchors a transparent background image. I have an addition to this: The image does not have to exist. You can simply write any path and it will make it work:

    a {
      background:url('dummy/doesnotexist.png') no-repeat;
    }
    

提交回复
热议问题