CSS Control Table nesting

Source: Internet
Author: User

1. [Image]Table.jpg
? 2. [code] using CSS to process a table nesting complete code

<style type= "Text/css" >
. form-table{
Border-collapse:collapse;
border-spacing:0px;
Border-style:solid solid solid solid;
border-width:1px;
Border-color: #000000;
}
. form-table table{
Border-collapse:collapse;
border-spacing:0px;
}
. form-table td{
margin:0px;
padding:0px;
height:25px;
line-height:25px;
Text-align:center;
Border-style:solid none None solid;
border-width:1px;
Border-color: #000000;
}
. form-table Table Tr:first-child td{
Border-top-style:none;
}
. form-table Table TR td:first-child{
Border-left-style:none;
}
</style>
3. [Code]IE6 does not support the pseudo-class of CSS, to be handled with jquery

<!--IE6 does not support the pseudo-class of CSS, to use jquery to process--
<!--[if IE 6]>
<script language= "javascript" src= "Jquery.js" ></script>
<script language= "JavaScript" >
$ (document). Ready (function () {
$ (". form-table table Tr:first-child TD"). CSS ("Border-top-style", "none");
$ (". form-table table TR td:first-child"). CSS ("Border-left-style", "none");
}); http://www.enterdesk.com/special/shouhui/?
</script> Hand Painted pictures
<! [endif]-->
4. The [Code] table refers to CSS in a very simple way
<table width= "50%" class= "form-table" >
<tr>
<td>
<table width= "100%" >
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width= "100%" >
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<table width= "100%" >
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>
<table width= "100%" >
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.