How to Use DIV + CSS to implement this table effect table Effect
<Table width = "500" border = "0" cellpadding = "0" cellspacing = "1" bgcolor = "#000000"> <tr bgcolor = "# FFFFFF"> <td height = "50" colspan = "3"> </td> </tr> <tr bgcolor = "# FFFFFF"> <td height = "50"> </td> <td height = "50"> </td> <td height = "50"> </td> </tr> <tr bgcolor = "# FFFFFF"> <td height = "50"> </td> <td height = "50"> </td> <td height = "50"> </td> </tr> <tr bgcolor = "# FFFFFF"> <td height = "50"> </td> <td height = "50"> </td> <td height = "50"> </ td> </tr> </table>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Table effect p + css
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <style type = text/css> # p1 {width: pixel PX; border-top: #000 1px solid; border-left: #000 1px solid;} # p1 ul {width: pixel PX; margin: 0px;} # p1 li {float: left; width: 149px; height: 50px; list-style-type: none; border-right: #000 1px solid; border-bottom: #000 1px solid; text-align: center; line-height: 50px ;}</style> <p id = "p1"> <ul> <li style = "width: 449px; "> 1 </li> <li> 2 </li> <li> 3 </li> <li> 4 </li> <li> 5 </li> <li> 6 </li> <li> 7 </li> <li> 8 </li> <li> 9 </li> <li> 10 </li> </ul> </p>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]