最赞回答 / Robert_Langdon
p.first相当于你给class="first”的p标签设置了样式,p空格.first相当于p span,这就意味着你给span标签设置了样式,p{...!important;}p{...;}span{...;} //!important只会影响p标签,不会影响span标签
2016-10-31
已采纳回答 / 慕运维6388425
设置页面使用的字符集,一般完整的是这样的<meta http-equiv="content-Type" content="text/html; charset=gb2312">http-equiv指的是告诉这个页面要做解析使用字符集这件事了,content告诉页面是html文件,charset告诉页面编码是gb2312
2016-10-31
已采纳回答 / 慕粉4040558
可以,以;分隔,在后加font-size:10px就可以比如:.food>li{color:red; border:1px solid blue;font-size:20px;}
2016-10-31
已采纳回答 / Steven_Wang
被包围在 <pre> 标签 元素中的文本通常会保留空格和换行符example:<Pre> code start ..... code end</Pre>
2016-10-30
已采纳回答 / menling
<div>块状元素 <span>是内联元素<div>会单独占一行<span>会另起一行而且,你没有对span进行样式调整想要字在框内,对<body>内的内容这么写<body> <div id="div1"><span>wwwwgfdshyuyyefsadertbfbx个体书法啥时打不过w</span></div></body>个人意见,有说的不对的地方请指教。
2016-10-30