遗漏最后一个';'有多重要?内的一组CSS规则? [英] How important is it to leave out the last ';' inside a set of CSS rules?

查看:74
本文介绍了遗漏最后一个';'有多重要?内的一组CSS规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了Internet Explorer无法在CSS属性列表中应用最后一个属性的问题.是否有必要从CSS属性列表中删除最后一个;?例如:

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 }

还是真的没关系吗?

推荐答案

没关系.甚至Internet Explorer 6 也将接受冗余分号.结尾;您的错误肯定是在其他地方.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆