样式表优先级顺序

样式表优先级顺序

本文介绍了样式表优先级顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有以下样式表:

user important declarations
user normal declarations
author normal declarations
user agent declarations
author important declarations

从最高优先级到最低优先级,我应该使用它们的顺序?

and need to apply them from highest priority to lowest priority, in which order should I use them?

推荐答案

正确的优先顺序是,最重要的是:

The correct order of precedence is, from least important to most important:


  1. 用户代理

  2. 用户普通

  3. 作者正常

  4. 作者重要

  5. 用户重要

  1. User Agent
  2. User Normal
  3. Author Normal
  4. Author Important
  5. User Important

如中所定义

这篇关于样式表优先级顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 06:30