<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # CSS margin-top 屬性 ## 實例 設置 p 元素的上外邊距: ``` p { margin-top:2cm; } ``` (在頁面底部可以找到更多實例) ## 瀏覽器支持 | IE | Firefox | Chrome | Safari | Opera | | --- | --- | --- | --- | --- | 所有主流瀏覽器都支持 margin-top 屬性。 注釋:任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。 ## 定義和用法 margin-top 屬性設置元素的上外邊距。 注釋:允許使用負值。 | 默認值: | 0 | | --- | --- | | 繼承性: | no | | --- | --- | | 版本: | CSS1 | | --- | --- | | JavaScript 語法: | _object_.style.marginTop="10px" | | --- | --- | ## 可能的值 | 值 | 描述 | | --- | --- | | auto | 瀏覽器設置的上外邊距。 | | _length_ | 定義固定的上外邊距。默認值是 0。 | | _%_ | 定義基于父對象總高度的百分比上外邊距。 | | inherit | 規定應該從父元素繼承上外邊距。 | ## TIY 實例 [設置文本的上外邊距 1](/tiy/t.asp?f=csse_margin-top) 本例演示如何使用厘米值來設置文本的頂邊距。 ``` <html> <head> <style type="text/css"> p.topmargin {margin-top: 5cm} </style> </head> <body> <p>這個段落沒有指定外邊距。</p> <p class="topmargin">這個段落帶有指定的上外邊距。</p> </body> </html> ``` [設置文本的上外邊距 2](/tiy/t.asp?f=csse_margin-top_percent) 本例演示如何使用百分比值來設置文本的頂邊距。 ``` <html> <head> <style type="text/css"> p.topmargin { margin-top: 25% } </style> </head> <body> <p>This is a paragraph with no margin specified</p> <p class="topmargin">This is a paragraph with a specified top margin</p> </body> </html> ``` ## 相關頁面 CSS 教程:[CSS 外邊距](/css/css_margin.asp "CSS 外邊距") HTML DOM 參考手冊:[marginTop 屬性](/jsref/prop_style_margintop.asp "HTML DOM marginTop 屬性")
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看