【发布时间】:2016-02-15 08:11:11
【问题描述】:
谁能澄清 HTML5 和 CSS 中单引号和双引号之间的区别。
这是 Google 在 HTML 中对单引号的矛盾使用:
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
还有 CSS:
font-family: 'Roboto', sans-serif;
虽然 Bootstrap 的文档实践演示了在 HTML 中使用双引号:
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">
还有 CSS:
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
哪种做法是最好的以及为什么?
编辑: Google Fonts 决定使用单引号是否有任何正当理由?
【问题讨论】:
标签: css html twitter-bootstrap google-webfonts