Why would font names need quotes?

后端 未结 5 573
青春惊慌失措
青春惊慌失措 2020-12-02 17:58

As far as I know, one needs to use double or single quotes for fonts if they contain spaces, like:

font-family: \"Times New Roman\", Times; 
font-family: \'T         


        
5条回答
  •  一个人的身影
    2020-12-02 18:55

    When to quote font-family:

    Optional

    font-family: Times New Roman;         /* These are equivalent */
    font-family: 'Times New Roman';
    font-family: "Times New Roman";
    
    font-family: Unique Ode™ 

提交回复
热议问题