亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

css樣式中屬性的值什么時候需要用”“?

如題,css樣式中屬性的值什么時候需要用"",什么時候不需要用"",我看前面很多屬性都是不需要"",比如

p{
???font-size:12px;
???color:red;
???font-weight:bold;
}

而字體的值卻需要,比如

body{font-family:"宋體";}


正在回答

3 回答


http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E4 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E7 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E8 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E9 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E9 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E7 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E4 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E9 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E4 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E6 ... 1%31%39%33%33%33%33
http://tags.tech.sina.com.cn/%E5 ... 1%31%39%33%33%33%33

0 回復 有任何疑惑可以回復我~
0 回復 有任何疑惑可以回復我~

當屬性值是字符串類型的時候需要加雙引號

0 回復 有任何疑惑可以回復我~
#1

Bravian 提問者

3ks,哪些屬性的值是字符串,除了字符串,css 屬性的值還有哪些類型
2017-01-25 回復 有任何疑惑可以回復我~
#2

Bravian 提問者

按道理 css 屬性的值應該沒有數據類型的區分才對,都是字符串,然后瀏覽器去解析
2017-01-25 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

css樣式中屬性的值什么時候需要用”“?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號