所有的属性必须用引号""括起来
2019年11月30日
作者:佚名
在HTML中,你可以不需要给属性值加引号,但是在XHTML中,它们必须被加引号。例如:
<div style=height:80px></div> <div class=abc></div>
必须修改为:
<div style="height:80px"></div> <div class="abc"></div>
在HTML中,你可以不需要给属性值加引号,但是在XHTML中,它们必须被加引号。例如:
<div style=height:80px></div> <div class=abc></div>
必须修改为:
<div style="height:80px"></div> <div class="abc"></div>