Does the order of rules in a CSS stylesheet affect rendering speed?

后端 未结 6 1513
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-13 17:45

While this could possibly result in a simple yes or no answer I\'ll go for it anyway


Consider the following example:

HTML

6条回答
  •  一向
    一向 (楼主)
    2021-02-13 18:28

    I'd say it's always best to order them in hierarchical order - so HTML is top, followed by body, followed by it's child rules.

提交回复
热议问题