Problem with IE when using display:block for links

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

This is my HTML:

Link 1 Link 2 Link 3 <
相关标签:
7条回答
  • 2021-02-07 16:44

    I have had the same problem and none of the solutions above worked for me. I also needed the background of the links to be transparent.

    A very uncomfortable solution, but one that worked perfectly is to set the background to a transparent gif. Only needs to be 1x1 px as it will repeat.

    #links a
    {
        display: block;
        background: url(/images/interface/blank/1dot.gif);
    }
    

    This seems to have no side effects apart from one additional request to the server.

    0 讨论(0)
提交回复
热议问题