How can I increase the bullet size in a li?

后端 未结 4 1384
遥遥无期
遥遥无期 2020-12-09 08:57

The bullets in IE8 are so small, I tried changing the font-size, but that didn\'t work. Code:

4条回答
  •  粉色の甜心
    2020-12-09 09:45

    IE8+ does scale the bullets but not for every font size.
    My fix is based on the fact the bullets for Verdana are larger than for Arial. I use css to set Verdana for li, at the same time I add extra spans around li's contents to keep the original font. Also, as Verdana can makes the lines higher, I may need to use line-height to make up for that, but that depends on the browser.
    Also I can use bigger font size for li to make the bullets even larger, then I'll have to use still smaller line-height.

    ul {
        font: 12px Arial;
    }
    ul li {
        font-family: Verdana;
        line-height: 120%;
    } /* font-size: 14px; line-height: 100%; */
    ul li span {
        font: 12px Arial;
    }
    
    
    • item 1
    • item 2

提交回复
热议问题