最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

font-weight Attribute | fontWeight Property

Internet Development Index

Sets or retrieves the weight of the font of the object.

Syntax

HTML { font-weight : sWeight }
Scriptingobject.style.fontWeight [ = sWeight ]

Possible Values

sWeightString that specifies or receives one of the following values.
normalDefault. Font is normal.
boldFont is bold.
bolderFont is heavier than regular bold.
lighterFont is lighter than normal.
100Font is at least as light as the 200 weight.
200Font is at least as bold as the 100 weight and at least as light as the 300 weight.
300Font is at least as bold as the 200 weight and at least as light as the 400 weight.
400Font is normal.
500Font is at least as bold as the 400 weight and at least as light as the 600 weight.
600Font is at least as bold as the 500 weight and at least as light as the 700 weight.
700Font is bold.
800Font is at least as bold as the 700 weight and at least as light as the 900 weight.
900Font is at least as bold as the 800 weight.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of normal. The Cascading Style Sheets (CSS) attribute is inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

Keywords for font-weight values are mapped to specific font variations depending on the fonts that are installed on the user's computer. In many cases, the user cannot see the difference between different font-weight settings because the system chooses the closest match.

Setting the font-weight to 400 is equivalent to normal, and to 700 is equivalent to bold. An font-weight of bolder or lighter is interpreted relative to the parent object's weight. A value of bolder for text whose parent is normal sets the text to bold.

Microsoft® Internet Explorer 4.0 supports only normal and bold.

Internet Explorer 3.0 supports the font-weight attribute through the font attribute.

Examples

The following examples use the font-weight attribute and the fontWeight property to change the font weight.

This example uses li as a selector in an embedded (global) style sheet to set the font weight to bolder.

<STYLE>
LI { font-weight:bolder }
</STYLE>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses inline scripting to set the font weight to bolder when an onmouseover event occurs.

<P STYLE="font-size:14" onmouseover="this.style.fontWeight='bolder'">
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Non-Microsoft link.

Applies To

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, CUSTOM, DD, defaults, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

See Also

font
长兴县| 五家渠市| 涟水县| 清原| 神农架林区| 香港 | 长丰县| 淳化县| 白水县| 车险| 乡宁县| 察哈| 怀柔区| 巴南区| 宜君县| 无棣县| 焉耆| 龙南县| 绥芬河市| 吉首市| 教育| 茶陵县| 温泉县| 孟津县| 哈巴河县| 曲靖市| 黄梅县| 晴隆县| 江西省| 大英县| 商都县| 湖北省| 茂名市| 白水县| 青海省| 沂南县| 通城县| 咸宁市| 娱乐| 博客| 灯塔市|