Thứ Tư, 12 tháng 3, 2014

Mẫu table thông dụng




1-  Ngang 500px


abc





2- Ngang 600px


abc





3- Ngang 700px:


abc






4- Ngang 800px

abc






5- Lớn nhất : Ngang 900px

abc







===========================================




CODE CỦA 5 BẢNG TRÊN



1-  Ngang 500px:

<table align="center" border="1" cellpadding="60" style="width: 500px;"><tbody> <tr><td valign="top"><h1 style="text-align: center;"> <div style="text-align: justify;"> <span style="font-weight: normal;"><span style="font-family: Times, Times New Roman, serif; font-size: large;">

abc</span></span><br /> <span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span></span></div> </h1> </td></tr> </tbody></table>



2-  Ngang 600px:

<table align="center" border="1" cellpadding="60" style="width: 600px;"><tbody> <tr><td valign="top"><h1 style="text-align: center;"> <div style="text-align: justify;"> <span style="font-weight: normal;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: large;">

abc</span></span><br /> <span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span></span></div> </h1> </td></tr> </tbody></table>


3- Ngang 700px:

<table align="center" border="1" cellpadding="60" style="width: 700px;"> <tbody> <tr> <td valign="top"><h1 style="text-align: center;"> <div style="text-align: justify;"> <span style="font-weight: normal;"><span style="font-family: Times, Times New Roman, serif; font-size: large;">

abc</span></span><br /> <span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span> <span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span> <span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span></span></div> </h1> </td></tr> </tbody></table>


4- Ngang 800px:

<table align="center" border="1" cellpadding="60" style="width: 800px;"> <tbody> <tr> <td valign="top"><h1 style="text-align: center;"> <div style="text-align: justify;"> <span style="font-weight: normal;"><span style="font-family: Times, Times New Roman, serif; font-size: large;">

abc</span></span><br /> <span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span> <span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span> <span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span></span></div> </h1> </td></tr> </tbody></table>


5- Lớn nhất : Ngang 900px

<table align="center" border="1" cellpadding="60" style="width: 900px;"> <tbody> <tr> <td valign="top"><h1 style="text-align: center;"> <div style="text-align: justify;"> <span style="font-weight: normal;"><span style="font-family: Times, Times New Roman, serif; font-size: large;">

abc</span></span><br /> <span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span> <span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span> <span style="font-weight: normal;"><span style="font-size: large;"><br /></span></span></span></div> </h1> </td></tr> </tbody></table>

================================================


Xem cách dùng bảng để căn lề cho bài mới và cũ tại trang sau: 











Không có nhận xét nào:

Đăng nhận xét