By default, the width and height of the table are automatically adjusted according to the content. We can also manually set the width and height of the table. Basic syntax <TABLE WIDTH=VALUE HEIGHT=VALUE> Syntax explanation <br />The width of the table is defined by the WIDTH attribute, and the height of the table is defined by the HEIGHT attribute. The unit is pixel or percentage. If it is a percentage, it can be divided into two cases: if it is not a nested table, the percentage is relative to the browser window; if it is a nested table, the percentage is relative to the cell width where the nested table is located. File example: 10-3.htm Set the width and height of the table. 01 <!-- ------------------------------ --> 02 <!-- File example: 10-3.htm --> 03 <!-- File Description: Set the width and height of the table--> 04 <!-- ------------------------------ --> 05 <HTML> 06 <HEAD> 07 <TITLE>Set the width and height of the table</TITLE> 08 </HEAD> 09 <BODY> 10 <H1>Mainstream web design software</H1> 11 <TABLE BORDER=1 WIDTH=400 HEIGHT=100> 12 <TR> 13 <TD>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. |
<<: Solution to Nginx SSL certificate configuration error
>>: Native JS to achieve image marquee effects
Preface Vuex allows us to define "getters&qu...
To deploy war with Docker, you must use a contain...
When switching users in the docker container, it ...
This article shares the specific code of Vue3 man...
Common usage of Regexp in Mysql Fuzzy matching, c...
This article example shares the specific code of ...
Table of contents Linux 1. Basic use of crontab 2...
1.17.9 More delicious, really Nginx download addr...
Preface To modify file permissions in the termina...
Table of contents Problem scenario: Solution: 1. ...
This article shares the download and installation...
Preface: The Linux host is relatively easy to han...
This article records the installation and configu...
Table of contents The CSS custom variable functio...
This article mainly introduces three methods of i...