次の方法で共有


text-decoration

text-decoration text-decoration *
*前のトピック: text-align
*次のトピック: text-indent

text-decoration

解説

エレメント内のテキストの装飾を設定する。

構文

{ text-decoration: none | [ underline || overline || line-through || blink]}

注意事項

Internet Explorer 4.0はblinkをサポートしているが、実際には点滅しない。

エレメントがテキストを含んでいない(たとえばIMGエレメント)、あるいは空のエレメント(たとえば<EM> </EM>)場合には無効である。

この属性は継承されない。

次の例では、すべてのナビゲーション状態においてすべてのリンクに下線を引いている。

A:link, A:visited, A:active, A:hover { text-decoration: underline }

適用

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HTML, I, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB,TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, INPUT type=button, INPUT type=file, INPUT type=reset, INPUT type=submit, INPUT type=text

スクリプトプロパティ

textDecoration, textDecorationLineThrough, textDecorationOverline, textDecorationUnderline

Up トップに戻る
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.