久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      html div怎么設(shè)置大小

      html div設(shè)置大小的方法:在div標簽中,使用style屬性設(shè)置“width:寬度數(shù)值+單位 ;”和“height: 高度數(shù)值+單位;”樣式即可。

      html div怎么設(shè)置大小

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

      在HTML中,<div> 可定義文檔中的一個分隔區(qū)塊或者一個區(qū)域部分。

      <div> 標簽可以把文檔分割為獨立的、不同的部分。它可以用作嚴格的組織工具,并且不使用任何格式與其關(guān)聯(lián)。

      <!doctype html> <html>  <head>   <meta charset="UTF-8">   <style type="text/css">   div{   border: 1px solid red;   }   </style>  </head>  <body> <div>測試文本</div> <div>測試文本測試文本測試文本測試文本測試文本測試文本測試文本測試文本測試文本測試文本</div>  </body> </html>

      html div怎么設(shè)置大小

      可以看出div標簽的寬度是默認滿屏的,而高度就默認是內(nèi)容高度。

      但我們可以通過手動給div設(shè)置樣式來改變它的大?。?/p>

      只需要在div標簽中,使用style屬性設(shè)置“width:寬度數(shù)值+單位 ;”和“height: 高度數(shù)值+單位;”樣式即可。

      <!doctype html> <html>  <head>   <meta charset="UTF-8">   <style type="text/css">   div{   border: 1px solid red;   }   </style>  </head>  <body> <div style="width:200px ;">測試文本</div> <div style="width:700px ;height: 100px;">測試文本測試文本測試文本測試文本測試文本測試文本測試文本測試文本測試文本測試文本</div>  </body> </html>

      效果圖:

      html div怎么設(shè)置大小

      推薦教程:《html視頻教程》

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