久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      html td怎么設(shè)置寬度

      html td設(shè)置寬度的方法:1、直接使用td標(biāo)簽的width屬性,語(yǔ)法格式“<td width="寬度值"></td>”;2、在td標(biāo)簽中使用style屬性,添加“width:寬度值;”樣式。

      html td怎么設(shè)置寬度

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

      1、直接使用td標(biāo)簽的width屬性

      width 屬性規(guī)定表格單元格的寬度。

      通常,單元格占用的空間就是它顯示內(nèi)容需要的空間。width 屬性用于為單元格設(shè)置預(yù)定義的寬度。

      示例:

      <table border="1"> 	<tr> 		<td width="100">商品</td> 		<td>價(jià)格</td> 	</tr> 	<tr> 		<td>T恤</td> 		<td>¥100</td> 	</tr> 	<tr> 		<td>牛仔褂</td> 		<td>¥250</td> 	</tr> 	<tr> 		<td>牛仔庫(kù)</td> 		<td>¥150</td> 	</tr> </table>

      效果圖:

      html td怎么設(shè)置寬度

      2、使用style屬性,添加“width:寬度值;”樣式

      style 屬性規(guī)定元素的行內(nèi)樣式。

      示例:

      <table border="1"> 	<tr> 		<td>商品</td> 		<td style="width: 100px;">價(jià)格</td> 	</tr> 	<tr> 		<td>T恤</td> 		<td>¥100</td> 	</tr> 	<tr> 		<td>牛仔褂</td> 		<td>¥250</td> 	</tr> 	<tr> 		<td>牛仔庫(kù)</td> 		<td>¥150</td> 	</tr> </table>

      效果圖:

      html td怎么設(shè)置寬度

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

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