<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # CSS margin-left 屬性 ## 實例 設置 p 元素的左外邊距: ``` p { margin-left:2cm; } ``` (在頁面底部可以找到更多實例) ## 瀏覽器支持 | IE | Firefox | Chrome | Safari | Opera | | --- | --- | --- | --- | --- | 所有主流瀏覽器都支持 margin-left 屬性。 注釋:任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。 ## 定義和用法 margin-left 屬性設置元素的左外邊距。 注釋:允許使用負值。 | 默認值: | 0 | | --- | --- | | 繼承性: | no | | --- | --- | | 版本: | CSS1 | | --- | --- | | JavaScript 語法: | _object_.style.marginLeft="10px" | | --- | --- | ## 可能的值 | 值 | 描述 | | --- | --- | | auto | 瀏覽器設置的左外邊距。 | | _length_ | 定義固定的左外邊距。默認值是0。 | | _%_ | 定義基于父對象總高度的百分比左外邊距。 | | inherit | 規定應該從父元素繼承左外邊距。 | ## TIY 實例 [設置文本的左外邊距 1](/tiy/t.asp?f=csse_margin-left) 本例演示如何使用厘米值來設置文本的左邊距。 ``` <html> <head> <style type="text/css"> p.leftmargin {margin-left: 2cm} </style> </head> <body> <p>這個段落沒有指定外邊距。</p> <p class="leftmargin">這個段落帶有指定的左外邊距。</p> </body> </html> ``` [設置文本的左外邊距 2](/tiy/t.asp?f=csse_margin-left_percent) 本例演示如何使用百分比值來設置文本的左邊距。 ``` <html> <head> <style type="text/css"> p.leftmargin { margin-left: 25% } </style> </head> <body> <p>This is a paragraph with no margin specified</p> <p class="leftmargin">This is a paragraph with a specified left margin</p> </body> </html> ``` ## 相關頁面 CSS 教程:[CSS 外邊距](/css/css_margin.asp "CSS 外邊距") HTML DOM 參考手冊:[marginLeft 屬性](/jsref/prop_style_marginleft.asp "HTML DOM marginLeft 屬性")
                  <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>

                              哎呀哎呀视频在线观看