我想使用 font-family CSS
<div style="font-family:"Times New Roman", Times, serif"> Hello world! </div>
对于字体系列“Times New Roman”,我应该转义引号吗?或者我可以不带引号使用它吗?
最佳答案
使用单引号:
<div style="font-family: 'Times New Roman', Times, serif"> Hello world! </div>
或者(感谢 @Matt):
<div style='font-family: "Times New Roman", Times, serif'> Hello world! </div>
关于html - 使用字体系列转义引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16493394/