上山下金是什么字| cooh是什么基| Mo什么元素| mcm是什么牌子| 带环了月经推迟不来什么原因| 孟子是什么时期的人| 1.29是什么星座| 伴手礼什么意思| 颈椎病有什么症状| 喝莓茶对身体有什么好处| 2018年是什么命| 化学性肝损伤是指什么| 什么是经络| 眼睛痛吃什么药好得快| 肾精亏虚吃什么药最好| 什么情况下会缺钾| alex是什么意思| 手臂发麻是什么原因引起的| 肠癌吃什么药| 过敏性鼻炎用什么药效果好| 兼职是什么| 原发性高血压是什么意思| 急性肾炎什么症状| 双子女和什么座最配对| 骶椎隐裂是什么意思| 术后吃什么水果| 1975年属什么| 手到擒来是什么意思| 嗓子沙哑吃什么药| 什么叫假性发烧| 爱情和面包是什么意思| maggie是什么意思| 家庭主妇是什么意思| 脉搏跳得快是什么原因| 择日不如撞日什么意思| 蟾蜍是什么| 手气是什么原因引起的| 移动增值业务费是什么| 中指和无名指一样长代表什么| 甲鱼吃什么| 鲨鱼是什么动物| 性格是什么| 借你吉言是什么意思| 天下无双是什么生肖| 胃灼热烧心吃什么药| 慢性胰腺炎吃什么药效果最好| 精神恍惚是什么意思| 什么是通勤| 多囊卵巢有什么症状表现| 社会是什么意思| 小肚子胀疼是什么原因| 月经期吃什么水果| 老是想咳嗽是什么原因| us是什么单位| 生脉饮适合什么人群| 胆固醇高有什么危害| 中午吃什么饭 家常菜| 神昏谵语是什么意思| 皮肌炎是什么病| 怀孕的人梦见蛇是什么意思| 外阴白斑擦什么药| 酪蛋白是什么| 摇头晃脑是什么生肖| 尾盘放量拉升意味着什么| 玉米须泡水喝有什么功效| 耳朵疼吃什么消炎药| 精卫填海是什么故事| 西瓜虫喜欢吃什么| 什么是条件兵| 菱形脸适合什么发型| 鲔鱼是什么鱼| 女鼠和什么属相最配对| 鼻孔里面痒是什么原因| 什么是区块链技术| 腹透是什么意思| 阳气最强的树是什么树| 什么是冰晶| ws是什么意思| 鸡男配什么属相最好| 溜达鸡是什么意思| 内敛什么意思| 95年是什么年| 山竹什么人不能吃| 远水解不了近渴什么意思| 总钙是什么意思| 传染病4项是什么| 钾高吃什么药| 世界上最大的湖泊是什么湖| 心肌缺血有什么症状和表现| 哺乳期抽烟对宝宝有什么影响| 吃什么可以提高免疫力和抵抗力| 护照办理需要什么材料| 大同有什么好吃的| 美容行业五行属什么| 奥硝唑和甲硝唑有什么区别| 外地车进北京有什么限制| 尿液有隐血是什么情况| 求知欲的欲什么意思| 丢包率是什么意思| 右边小腹疼是什么原因| 中元节不能穿什么衣服| 法官是什么级别| pass是什么意思| 米加白念什么| 儿童用什么牙膏最好可以保护牙齿| 梅毒抗体阳性说明什么| 咽拭子是检查什么的| poppy是什么意思| 吃什么能提高免疫力| adidas是什么品牌| 鲸属于什么类动物| 生肖龙和什么生肖最配| 吾日三省吾身是什么意思| 现在去贵州穿什么衣服| 95属什么生肖| 林五行属什么| 刚产下的蚕卵是什么颜色| 人武部是干什么的| 枕头底下放剪刀有什么说法| 舅舅是什么关系| 往届毕业生是什么意思| 包皮是什么样子图片| 香油是什么油| 热射病是什么症状| 什么运动长高最快| 动物园里有什么动物| 柠檬泡水喝有什么功效| 缘起缘灭是什么意思| 外围什么意思| 什么叫压缩性骨折| 男人吃六味地黄丸有什么好处| 上升星座什么意思| 歌字五行属什么| 为什么要坐月子| 青团是什么节日吃的| 宝宝经常发烧是什么原因引起的| 甲鱼吃什么东西| 吃杨梅有什么好处| 颈椎间盘突出有什么症状| 唐僧成了什么佛| 特别容易出汗是什么原因| 女生来大姨妈要注意什么| 胆汁反流是什么意思| 吃生姜对身体有什么好处和坏处| 脱轨是什么意思| 丙子日是什么意思| 小孩睡觉磨牙是什么原因| 伏案工作是什么意思| 人棍是什么意思| 姜子牙姓什么| 一个月一个屯念什么| 拔气罐有什么好处| 吃三七粉有什么功效| 十月一日是什么日子| bmd是什么意思| 梦见杀人了是什么意思| ccp抗体是什么意思| e-mail什么意思| 抵触是什么意思| 世界上最小的国家是什么| 爬山虎是什么茎| 唯有读书高的前一句是什么| 什么叫通勤| 马住什么意思| 四物汤是什么| 男人尿频是什么原因| 什么什么一笑| 陕西八大怪是什么| 属蛇本命佛是什么佛| 8月15号是什么日子| hd是什么意思| 返图是什么意思| 梦见黑山羊是什么预兆| 希特勒为什么要杀犹太人| 红细胞高是什么意思| 大龄补贴需要什么条件| 断片是什么意思| 湿疹是什么症状图片| 芥末油是什么提炼出来的| 什么什么龙什么| 赵本山什么时候去世的| 鸡胗炒什么菜好吃| 下肢血液循环不好吃什么药| 就请你给我多一点点时间是什么歌| 蜂蜜吃了有什么好处| 病毒性扁桃体炎吃什么药| 树大招风的意思是什么| 夏天怕冷是什么原因| 屋上土是什么意思| 脂肪粒是什么原因引起的| 墨绿色是什么颜色| 白芷有什么功效| 什么叫强迫症| 七月份适合种什么蔬菜| 相声海清是什么意思| 猫来家里有什么预兆| 老板娘是什么意思| doneed是什么牌子| 什么牌子的耳机音质效果最好| 平均红细胞体积偏高是什么原因| 属虎适合佩戴什么饰品| 囊中之物是什么意思| 梦见自己手机丢了是什么意思| 铁饱和度低什么原因| 万象更新什么意思| 代沟是什么| 甲状腺是什么症状| 哺乳期乳腺炎吃什么药| 保育是什么意思| 尿常规挂什么科| 阴茎里面痒是什么原因| 脂肪瘤应该挂什么科| 深水炸弹什么意思| 肝脾不和吃什么中成药| 祈字五行属什么| hpv阴性什么意思| 维生素k是什么| 梅子什么时候成熟| 什么是电离辐射| 风疹病毒是什么| 种牙和假牙有什么区别| 美的不可方物什么意思| 男人什么时候精子最强| 始终如一是什么意思| 蝈蝈为什么不叫| 数不胜数的胜是什么意思| cr是什么意思| 肚子痛什么原因| 男人吃韭菜有什么好处| 吃什么可以降低尿酸| 肾结石挂什么科| 出什么入什么| 孕妇吃什么能马上通便| 吃高血压药有什么副作用| 去三亚穿什么衣服合适| 耳朵发炎用什么药| 打篮球对身体有什么好处| 党员有什么好处| 低gi是什么意思| 动次打次是什么意思| 乌鱼蛋是什么| 什么是双向抑郁| 回煞是什么意思| 内衣为什么会发霉| 月经期喝什么水最好| 什么是滑精| 珍珠母贝是什么东西| 为什么低血糖| 大连六院是什么医院| 68年属猴的是什么命| 荨麻疹什么症状| 大龄补贴需要什么条件| 家里养什么花最好| 经验是什么意思| 双侧附睾头囊肿是什么意思| 乳腺看什么科| 调休是什么意思| mfd是什么意思| 冬瓜什么时候成熟| 吃桑葚有什么好处| 吃什么能减肥| cde是什么意思| 晚上睡觉脚冰凉是什么原因| 77代表什么意思| 百度

CBA1/4决赛第2回合官方TOP3 比斯利荣登效率榜首

百度 他表示,深入学习领会、全面贯彻落实十九大精神,以新时代中国特色社会主义思想为指引,是做好基层党建创新案例的评选工作、进一步推动基层党建创新的政治保证。

Contents

Note: Several sections of this specification have been updated by other specifications. Please, see "Cascading Style Sheets (CSS) — The Official Definition" in the latest CSS Snapshot for a list of specifications and the sections they replace.

The CSS Working Group is also developing CSS level 2 revision 2 (CSS 2.2).

6.1 Specified, computed, and actual values

Once a user agent has parsed a document and constructed a document tree, it must assign, for every element in the tree, a value to every property that applies to the target media type.

The final value of a property is the result of a four-step calculation: the value is determined through specification (the "specified value"), then resolved into a value that is used for inheritance (the "computed value"), then converted into an absolute value if necessary (the "used value"), and finally transformed according to the limitations of the local environment (the "actual value").

6.1.1 Specified values

User agents must first assign a specified value to each property based on the following mechanisms (in order of precedence):

  1. If the cascade results in a value, use it.
  2. Otherwise, if the property is inherited and the element is not the root of the document tree, use the computed value of the parent element.
  3. Otherwise use the property's initial value. The initial value of each property is indicated in the property's definition.

6.1.2 Computed values

Specified values are resolved to computed values during the cascade; for example URIs are made absolute and 'em' and 'ex' units are computed to pixel or absolute lengths. Computing a value never requires the user agent to render the document.

The computed value of URIs that the UA cannot resolve to absolute URIs is the specified value.

The computed value of a property is determined as specified by the Computed Value line in the definition of the property. See the section on inheritance for the definition of computed values when the specified value is 'inherit'.

The computed value exists even when the property does not apply, as defined by the 'Applies To' line. However, some properties may define the computed value of a property for an element to depend on whether the property applies to that element.

6.1.3 Used values

Computed values are processed as far as possible without formatting the document. Some values, however, can only be determined when the document is being laid out. For example, if the width of an element is set to be a certain percentage of its containing block, the width cannot be determined until the width of the containing block has been determined. The used value is the result of taking the computed value and resolving any remaining dependencies into an absolute value.

6.1.4 Actual values

A used value is in principle the value used for rendering, but a user agent may not be able to make use of the value in a given environment. For example, a user agent may only be able to render borders with integer pixel widths and may therefore have to approximate the computed width, or the user agent may be forced to use only black and white shades instead of full color. The actual value is the used value after any approximations have been applied.

6.2 Inheritance

Some values are inherited by the children of an element in the document tree, as described above. Each property defines whether it is inherited or not.

Suppose there is an H1 element with an emphasizing element (EM) inside:

<H1>The headline <EM>is</EM> important!</H1>

If no color has been assigned to the EM element, the emphasized "is" will inherit the color of the parent element, so if H1 has the color blue, the EM element will likewise be in blue.

When inheritance occurs, elements inherit computed values. The computed value from the parent element becomes both the specified value and the computed value on the child.

Example(s):

For example, given the following style sheet:

body { font-size: 10pt }
h1 { font-size: 130% }

and this document fragment:

<BODY>
  <H1>A <EM>large</EM> heading</H1>
</BODY>

the 'font-size' property for the H1 element will have the computed value '13pt' (130% times 10pt, the parent's value). Since the computed value of 'font-size' is inherited, the EM element will have the computed value '13pt' as well. If the user agent does not have the 13pt font available, the actual value of 'font-size' for both H1 and EM might be, for example, '12pt'.

Note that inheritance follows the document tree and is not intercepted by anonymous boxes.

6.2.1 The 'inherit' value

Each property may also have a cascaded value of 'inherit', which means that, for a given element, the property takes the same specified value as the property for the element's parent. The 'inherit' value can be used to enforce inheritance of values, and it can also be used on properties that are not normally inherited.

If the 'inherit' value is set on the root element, the property is assigned its initial value.

Example(s):

In the example below, the 'color' and 'background' properties are set on the BODY element. On all other elements, the 'color' value will be inherited and the background will be transparent. If these rules are part of the user's style sheet, black text on a white background will be enforced throughout the document.

body {
  color: black !important; 
  background: white !important;
}

* { 
  color: inherit !important; 
  background: transparent !important;
}

6.3 The @import rule

The '@import' rule allows users to import style rules from other style sheets. In CSS 2.1, any @import rules must precede all other rules (except the @charset rule, if present). See the section on parsing for when user agents must ignore @import rules. The '@import' keyword must be followed by the URI of the style sheet to include. A string is also allowed; it will be interpreted as if it had url(...) around it.

Example(s):

The following lines are equivalent in meaning and illustrate both '@import' syntaxes (one with "url()" and one with a bare string):

@import "mystyle.css";
@import url("mystyle.css");

So that user agents can avoid retrieving resources for unsupported media types, authors may specify media-dependent @import rules. These conditional imports specify comma-separated media types after the URI.

Example(s):

The following rules illustrate how @import rules can be made media-dependent:

@import url("fineprint.css") print;
@import url("bluish.css") projection, tv;

In the absence of any media types, the import is unconditional. Specifying 'all' for the medium has the same effect. The import only takes effect if the target medium matches the media list.

A target medium matches a media list if one of the items in the media list is the target medium or 'all'.

Note that Media Queries [MEDIAQ] extends the syntax of media lists and the definition of matching.

When the same style sheet is imported or linked to a document in multiple places, user agents must process (or act as though they do) each link as though the link were to a separate style sheet.

6.4 The cascade

Style sheets may have three different origins: author, user, and user agent.

Style sheets from these three origins will overlap in scope, and they interact according to the cascade.

The CSS cascade assigns a weight to each style rule. When several rules apply, the one with the greatest weight takes precedence.

By default, rules in author style sheets have more weight than rules in user style sheets. Precedence is reversed, however, for "!important" rules. All user and author rules have more weight than rules in the UA's default style sheet.

6.4.1 Cascading order

To find the value for an element/property combination, user agents must apply the following sorting order:

  1. Find all declarations that apply to the element and property in question, for the target media type. Declarations apply if the associated selector matches the element in question and the target medium matches the media list on all @media rules containing the declaration and on all links on the path through which the style sheet was reached.
  2. Sort according to importance (normal or important) and origin (author, user, or user agent). In ascending order of precedence:
    1. user agent declarations
    2. user normal declarations
    3. author normal declarations
    4. author important declarations
    5. user important declarations
  3. Sort rules with the same importance and origin by specificity of selector: more specific selectors will override more general ones. Pseudo-elements and pseudo-classes are counted as normal elements and classes, respectively.
  4. Finally, sort by order specified: if two declarations have the same weight, origin and specificity, the latter specified wins. Declarations in imported style sheets are considered to be before any declarations in the style sheet itself.

Apart from the "!important" setting on individual declarations, this strategy gives author's style sheets higher weight than those of the reader. User agents must give the user the ability to turn off the influence of specific author style sheets, e.g., through a pull-down menu. Conformance to UAAG 1.0 checkpoint 4.14 satisfies this condition [UAAG10].

6.4.2 !important rules

CSS attempts to create a balance of power between author and user style sheets. By default, rules in an author's style sheet override those in a user's style sheet (see cascade rule 3).

However, for balance, an "!important" declaration (the delimiter token "!" and keyword "important" follow the declaration) takes precedence over a normal declaration. Both author and user style sheets may contain "!important" declarations, and user "!important" rules override author "!important" rules. This CSS feature improves accessibility of documents by giving users with special requirements (large fonts, color combinations, etc.) control over presentation.

Declaring a shorthand property (e.g., 'background') to be "!important" is equivalent to declaring all of its sub-properties to be "!important".

Example(s):

The first rule in the user's style sheet in the following example contains an "!important" declaration, which overrides the corresponding declaration in the author's style sheet. The second declaration will also win due to being marked "!important". However, the third rule in the user's style sheet is not "!important" and will therefore lose to the second rule in the author's style sheet (which happens to set style on a shorthand property). Also, the third author rule will lose to the second author rule since the second rule is "!important". This shows that "!important" declarations have a function also within author style sheets.

/* From the user's style sheet */
p { text-indent: 1em ! important }
p { font-style: italic ! important }
p { font-size: 18pt }

/* From the author's style sheet */
p { text-indent: 1.5em !important }
p { font: normal 12pt sans-serif !important }
p { font-size: 24pt }

6.4.3 Calculating a selector's specificity

A selector's specificity is calculated as follows:

The specificity is based only on the form of the selector. In particular, a selector of the form "[id=p33]" is counted as an attribute selector (a=0, b=0, c=1, d=0), even if the id attribute is defined as an "ID" in the source document's DTD.

Concatenating the four numbers a-b-c-d (in a number system with a large base) gives the specificity.

Example(s):

Some examples:

 *             {}  /* a=0 b=0 c=0 d=0 -> specificity = 0,0,0,0 */
 li            {}  /* a=0 b=0 c=0 d=1 -> specificity = 0,0,0,1 */
 li:first-line {}  /* a=0 b=0 c=0 d=2 -> specificity = 0,0,0,2 */
 ul li         {}  /* a=0 b=0 c=0 d=2 -> specificity = 0,0,0,2 */
 ul ol+li      {}  /* a=0 b=0 c=0 d=3 -> specificity = 0,0,0,3 */
 h1 + *[rel=up]{}  /* a=0 b=0 c=1 d=1 -> specificity = 0,0,1,1 */
 ul ol li.red  {}  /* a=0 b=0 c=1 d=3 -> specificity = 0,0,1,3 */
 li.red.level  {}  /* a=0 b=0 c=2 d=1 -> specificity = 0,0,2,1 */
 #x34y         {}  /* a=0 b=1 c=0 d=0 -> specificity = 0,1,0,0 */
 style=""          /* a=1 b=0 c=0 d=0 -> specificity = 1,0,0,0 */
<HEAD>
<STYLE type="text/css">
  #x97z { color: red }
</STYLE>
</HEAD>
<BODY>
<P ID=x97z style="color: green">
</BODY>

In the above example, the color of the P element would be green. The declaration in the "style" attribute will override the one in the STYLE element because of cascading rule 3, since it has a higher specificity.

6.4.4 Precedence of non-CSS presentational hints

The UA may choose to honor presentational attributes in an HTML source document. If so, these attributes are translated to the corresponding CSS rules with specificity equal to 0, and are treated as if they were inserted at the start of the author style sheet. They may therefore be overridden by subsequent style sheet rules. In a transition phase, this policy will make it easier for stylistic attributes to coexist with style sheets.

For HTML, any attribute that is not in the following list should be considered presentational: abbr, accept-charset, accept, accesskey, action, alt, archive, axis, charset, checked, cite, class, classid, code, codebase, codetype, colspan, coords, data, datetime, declare, defer, dir, disabled, enctype, for, headers, href, hreflang, http-equiv, id, ismap, label, lang, language, longdesc, maxlength, media, method, multiple, name, nohref, object, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onload, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onreset, onselect, onsubmit, onunload, onunload, profile, prompt, readonly, rel, rev, rowspan, scheme, scope, selected, shape, span, src, standby, start, style, summary, title, type (except on LI, OL and UL elements), usemap, value, valuetype, version.

For other languages, all document language-based styling must be translated to the corresponding CSS and either enter the cascade at the user agent level or, as with HTML presentational hints, be treated as author level rules with a specificity of zero placed at the start of the author style sheet.

Example(s):

The following user style sheet would override the font weight of 'b' elements in all documents, and the color of 'font' elements with color attributes in XML documents. It would not affect the color of any 'font' elements with color attributes in HTML documents:

b { font-weight: normal; }
font[color] { color: orange; }

The following, however, would override the color of font elements in all documents:

font[color] { color: orange ! important; }
野馄饨是什么意思 tap什么意思 腰椎间盘突出和膨出有什么区别 力不从心什么意思 甲状腺结节吃什么好
睫角守宫吃什么 唐氏筛查都查些什么 火腿炒什么菜好吃 热泪盈眶的盈是什么意思 毒龙钻是什么意思
怀孕前检查什么项目内容 氯硝西泮片是什么药 早上起来口苦是什么原因 乳腺4a是什么意思 碘酊和碘伏有什么区别
猪和什么属相不合 气血两虚吃什么中成药 20属什么生肖 什么是眼底病 芈月是秦始皇什么人
西瓜什么时候种植hcv9jop0ns6r.cn 七月一号是什么节hcv9jop1ns1r.cn junior什么意思hcv9jop5ns2r.cn 和珅属什么生肖luyiluode.com 外阴瘙痒吃什么药hcv8jop0ns9r.cn
三伏天是什么时候hcv7jop9ns7r.cn 月亮为什么会有圆缺变化bysq.com 什么的饭菜helloaicloud.com 什么病不能吃虾hcv9jop5ns8r.cn 蜗牛为什么怕盐hcv8jop5ns4r.cn
人走茶凉下一句是什么hcv9jop0ns9r.cn 金水宝胶囊有什么作用hcv9jop2ns6r.cn 脑供血不足用什么药好hcv8jop9ns0r.cn 尿白细胞弱阳性什么意思hcv8jop3ns5r.cn 注明是什么意思hcv8jop6ns0r.cn
女人梦见烧纸什么预兆huizhijixie.com 法务是干什么的clwhiglsz.com 吃什么促进消化hcv9jop7ns0r.cn 实属什么意思hcv9jop6ns4r.cn 什么牌子助听器好hcv8jop0ns3r.cn
百度