tag and css font-family

前端 未结 5 704
一生所求
一生所求 2020-12-31 01:01

I have html with code below:

                                      |       Date Offense |       Count |
   Title, Section & Nature of Offense         


        
5条回答
  •  执念已碎
    2020-12-31 01:31

    You must use a monospace font (also known as typewriter font). That is a font in which all the characters take the same space.

    In CSS the font name monospace is translated to the default monospace font on the user system. It's good practice to include monospace at the end of a font-familly list for the

     element so that it can be used as a fallback.

    For instance:

    pre {font-family: Consolas,monospace}
    

    will use the Consolas monospace font if it's available or fallback to the default.

提交回复
热议问题