欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長(zhǎng)資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

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

          html td設(shè)置寬度的方法:1、直接使用td標(biāo)簽的width屬性,語法格式“<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>牛仔庫</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>牛仔庫</td> 		<td>¥150</td> 	</tr> </table>

          效果圖:

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

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

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