What does “a” stand for in font: 0/0 a;

前端 未结 2 1875
半阙折子戏
半阙折子戏 2021-01-01 10:04

I was referring a video tutorial where the designer used font: 0/0 a; for image replacement, so I get that 0 is the font-size, another

2条回答
  •  粉色の甜心
    2021-01-01 10:45

    The a is a font name, and of course it's very unlikely that anyone has a font by that name installed.

    It's just used to satisfy the CSS syntax, and what font the browser thinks it should use from that is not important, as it won't be used to show any text anyway.


    If you use that on an image in order to get rid of spacing around the image, consider using display:block instead.

提交回复
热议问题