留下最后一句话的重要性;里面一组CSS规则 [英] How important is it to be leaving out the last ';' inside a set of CSS rules
本文介绍了留下最后一句话的重要性;里面一组CSS规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有Internet Explorer没有应用CSS属性列表中的最后一个属性的问题。是否需要从CSS属性列表中删除最后的;
?例如:
.style {width:100px; height:100px}
还是真的没关系吗?
即使Internet Explorer 6也会在结尾处接受冗余分号; 你的错误必须在别的地方。
I've had problems with Internet Explorer not applying the last property in a list of CSS properties. Is it necessary to leave out the last ;
from a list of CSS properties? For example:
.style { width: 100px; height: 100px }
Or does it really not matter?
解决方案
It doesn’t matter. Even Internet Explorer 6 will accept the redundant semi-colon at the end; your mistake must have been somewhere else.
这篇关于留下最后一句话的重要性;里面一组CSS规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文