admin管理员组文章数量:1290222
I use single quote ''
and double quote ""
in CSS regularly. Is there any size difference between them? If yes, I'd like to use the smaller one.
I use single quote ''
and double quote ""
in CSS regularly. Is there any size difference between them? If yes, I'd like to use the smaller one.
1 Answer
Reset to default 0There is no difference in terms of file size between single and double quotes.
Generally speaking, you should use whatever quotes are called for in the coding standard defined by the project you're using. If no coding standard is being used, at least be consistent with your usage.
WordPress specifies the following guidelines for using quotes in the CSS coding standards:
Selectors
Attribute selectors should use double quotes around values
Values
Use double quotes rather than single quotes, and only when needed, such as when a font name has a space or for the values of the content property.
I'd suggest following the WP coding standards if your project doesn't already have a standard defined.
本文标签: Is there any size difference between single quote 39 39 and double quote quot quot in CSS
版权声明:本文标题:Is there any size difference between single quote ' ' and double quote " " in CSS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741493618a2381733.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论