次の方法で共有


margin-top

margin-top margin-top *
*前のトピック: margin-right
*次のトピック: overflow

margin-top

解説

エレメントの上辺のマージンを指定する。インラインエレメントについては上辺と底辺のマージン以外は負の値でもよい。

構文

{ margin-top: [ length | percentage | auto]}

注意事項

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

適用

BLOCKQUOTE, BODY, CAPTION, CENTER, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HR, INPUT, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP, TEXTAREA, IFRAME, SPAN, IMG, OBJECT

スクリプトプロパティ

marginTop

関連事項

margin属性、 margin-bottom属性、 margin-left属性、 margin-right属性

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