It can be seen that a table line with a width of 0 will not be displayed in the browser. In fact, the so-called use of tables for typesetting is to use tables with a table line of 0 to divide the page into multiple areas to achieve the effect of positioning typesetting. In addition, tables and tables can be nested. For example, in the above table, insert another table in cell 2 with a table width of 100% and a table line width of 0, and set different background colors for cells ①②③ respectively. , you can see in editing state:
The actual browsing effect is:
Nesting of tables is often used in web page production, especially in portal websites such as Sina, Sohu, and NetEase. In order to display a large amount of information neatly in front of viewers, nesting of tables is used most frequently. The picture below shows the homepage of goEway.com in editing mode. You can see that the page is densely covered with table lines: