CSS属性顺序有多重要? [英] How important is CSS property order?

查看:108
本文介绍了CSS属性顺序有多重要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS声明中属性的顺序对HTML的呈现是否有影响?

Does the order of properties in a CSS declaration have an effect on the rendering of the HTML?

推荐答案

对结果没有任何直接影响。
这里提到的主题: http:// css -tricks.com/cnew-poll-how-order-css-properties/

Apparently the order does not have any direct impact on the result. The subject has been mentioned here: http://css-tricks.com/new-poll-how-order-css-properties/

根据这里有一个影响: http://css-tricks.com/ordering-css3-properties/

It does have an impact according to here: http://css-tricks.com/ordering-css3-properties/

这是另一种趋势: http: //perishablepress.com/obsessive-css-code-formatting-patterns-and-trends/

最终裁决:安排最佳判断方式将工作。

Final verdict: Arrange the way you judge best, it will work.

这篇关于CSS属性顺序有多重要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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