Home > front end >  Use the table tag to form layout
Use the table tag to form layout

Time:10-30

& lt; ! Doctype html>
& lt; html>
& lt; head>
& lt; Meta charset="gb2312" & gt; & lt; ! - the character encoding - & gt;
& lt; title> Use the table tag layout page & lt;/title> & lt; ! - the page title - & gt;
& lt;/head>
& lt; body>
& lt; Table width="1300" height="640" border="1" & gt;
& lt; tr>
& lt; Td colspan="3" & gt; Header
& lt;/tr>
& lt; tr>
& lt; Td colspan="3" & gt; Nav
& lt;/tr>
& lt; tr>
& lt; td> Content_left & lt;/td>
& lt; td> Content_center & lt;/td>
& lt; td> Content_right & lt;/td>
& lt;/tr>
& lt; tr>
& lt; Td colspan="3" & gt; Footer
& lt;/tr>
& lt;/table>
& lt; body>
& lt;/html>

CodePudding user response:

Form generally will not use it this way, if the internal layout is more troublesome, limited column is not very flexible

CodePudding user response:

Thank you for your reminding, I fill in the unordered list within the cell, it is always not aligned on the top of the cell

CodePudding user response:

* {padding: 0 px;
margin:0px;
}

Did not eliminate the browser default style?
If so, want to use CSS to eliminate it

CodePudding user response:

The
reference 3 floor horizon_zpy response:
* {padding: 0 px;
margin:0px;
}

Did not eliminate the browser default style?
If so, want to use CSS to eliminate the

Thank you, may I try it on, I'm not very skilled mastery of CSS

CodePudding user response:

Table with best cellpadding="0" cellspacing="0" style="border - the collapse: the collapse" avoid border lines too thick

CodePudding user response:

leaf MAO references 5 floor response:
table with best cellpadding="0" cellspacing="0" style="border - the collapse: the collapse" avoid border lines too thick

Thank you for reminding me, if you want to realize the background image, such as scaling, what should I do? Thank you very much!
  • Related