Where to use quotes?
Where and how should quotes be used in CSS?
width: 150px; 开发者_运维问答 /* or */ width: "150px";
height: 50%; /* or */ height: "50%";
font-family: Verdana; /* or */ font-family: "Verdana";
You only need to use quotes if the property value has spaces in it. In practice, I think the only cases in which this is likely to come up are font names and URLs.
Example:
font-family: "DejaVu Sans", sans-serif;
精彩评论