久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css怎樣設(shè)置hr居中

      在css中,可以利用“text-align”屬性設(shè)置hr居中,該屬性的作用就是規(guī)定元素的水平對齊方式,只需要給hr元素添加“text-align:center;”樣式即可。

      css怎樣設(shè)置hr居中

      本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

      css設(shè)置hr居中的方法

      在css中可以利用“text-align:center;”屬性設(shè)置hr居中,

      text-align屬性規(guī)定元素中的文本的水平對齊方式。

      該屬性通過指定行框與哪個點對齊,從而設(shè)置塊級元素內(nèi)文本的水平對齊方式。通過允許用戶代理調(diào)整行內(nèi)容中字母和字之間的間隔,可以支持值 justify;不同用戶代理可能會得到不同的結(jié)果。

      示例如下:

      <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <meta http-equiv="X-UA-Compatible" content="ie=edge">     <title>Document</title> </head> <body> <style type="text/css">     hr{         width:50%;         text-align:center;     }     </style> <h1>HTML</h1> <p>HTML 是用于描述 web 頁面的一種語言。</p> <hr> <h1>CSS</h1> <p>CSS 定義如何顯示 HTML 元素。</p> </body> </html>

      輸出結(jié)果:

      css怎樣設(shè)置hr居中

      (學(xué)習(xí)視頻分享:css視頻教程)

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號