By default, the width and height of the cell are automatically adjusted according to the content, and we can also manually set the width and height of the cell. Basic syntax <TD WIDTH=value HEIGHT=value> Syntax explanation <br />The WIDTH attribute defines the width of the cell, and the HEIGHT attribute defines the height of the cell, in pixels or percentage. File example: 10-29.htm Set the width and height of the cell. 01 <!-- ------------------------------ --> 02 <!-- File example: 10-29.htm --> 03 <!--File Description: Set the width and height of the cell--> 04 <!-- ------------------------------ --> 05 <HTML> 06 <HEAD> 07 <TITLE>Setting the width and height of the cell</TITLE> 08 </HEAD> 09 <BODY> 10 <H1>Mainstream web design software</H1> 11 <TABLE BORDER=1 WIDTH=400 HEIGHT=100> 12 <TR> 13 <TD WIDTH=300 height=50>Web Graphics Software</TD><TD>Fireworks</TD> 14 </TR> 15 <TR> 16 <TD>Web page creation software</TD><TD>Dreamweaver</TD> 17 </TR> 18 <TR> 19 <TD>Web animation software</TD><TD>Flash</TD> 20 </TR> 21 </TABLE> 22 </BODY> 23 </HTML> File Description <br />Line 11 defines the table's width as 400 pixels and its height as 100 pixels. Line 13 defines the cell width as 300 pixels and height as 50 pixels. |
<<: Using zabbix to monitor the ogg process (Linux platform)
>>: Native JS to implement sharing sidebar
Table of contents 1. Download MySQL msi version 2...
1. Check the character set of the database The ch...
1. Basic knowledge: Http Header User-Agent User A...
Table of contents Overview Performance.now Consol...
Relative Length Units em Description: Relative len...
I recently upgraded MySQL to 5.7, and WordPress r...
Install mysql5.7.21 in the window environment. Th...
Preface Anyone who has learned JavaScript must be...
<br />Related articles: 9 practical tips for...
Table of contents Preface start Basic layout Data...
Preface Any application that can be written in Ja...
The following attributes are not very compatible w...
JSONObject is just a data structure, which can be...
Demand background A statistical interface, the fr...
This article shares the specific code of JavaScri...