61,128
社区成员




<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GBK">
<style>
.web_table {
border:1px solid #C8C8C8;
z-index: 0;
table-layout:fixed;
border-spacing:0px;
border-collapse:collapse;
width:0px;
height:0px;
padding:0px;
margin:0px;
}
.grid_cell2{
border-top-color:#ffffff;
border-left-color:#ffffff;
border-right-color:#808080;
border-bottom-color:#808080;
border-top-style:solid;
border-left-style:solid;
border-right-style:solid;
border-bottom-style:solid;
border-top-width:1px;
border-left-width:1px;
border-right-width:1px;
border-bottom-width:1px;
font-size:12px;
text-align:center;
vertical-align:middle;
font-family:"宋体";
width:51px;
height:20px;
}
.grid_cell{
border-top-color:#ffffff;
border-left-color:#ffffff;
border-right-color:#808080;
border-bottom-color:#808080;
border-top-style:solid;
border-left-style:solid;
border-right-style:solid;
border-bottom-style:solid;
border-top-width:1px;
border-left-width:1px;
border-right-width:1px;
border-bottom-width:1px;
color:#000FFF;
background-color: #FFFFFF;
font-size:12px;
text-align:center;
vertical-align:middle;
font-family:"宋体";
cursor:default;
width:51px;
height:20px;
white-space:nowrap;
border-collapse:collapse;
text-overflow:ellipsis;
}
tr{
overflow:hidden;
font-size:0px;
}
</style>
</head>
<body>
<table class="web_table" id="web_table" cellpadding="0" cellspacing="0">
<tr>
<td class='grid_cell2'> aa </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
</tr>
<tr>
<td class='grid_cell'>bbb </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> col3 </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
</tr>
<tr>
<td class='grid_cell'> </td>
<td class='grid_cell' > </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
</tr>
<tr>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> col3 </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
</tr>
<tr>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> col3 </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
</tr>
</table>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GBK">
<style>
.web_table {
border:1px solid #C8C8C8;
z-index: 0;
table-layout:fixed;
border-spacing:0px;
border-collapse:collapse;
width:0px;
height:0px;
padding:0px;
margin:0px;
}
.grid_cell2{
border:none;
width:81px;
height:0px;
white-space:nowrap;
border-collapse:collapse;
padding:0px;
margin:0px;
}
.grid_cell{
border-top-style:solid;
border-left-style:solid;
border-right-style:solid;
border-bottom-style:solid;
border-top-width:1px;
border-left-width:1px;
border-right-width:1px;
border-bottom-width:1px;
color:#000FFF;
background-color: #FFFFFF;
font-size:40px;
text-align:center;
vertical-align:middle;
font-family:"宋体";
cursor:default;
width:51px;
height:20px;
white-space:nowrap;
border-collapse:collapse;
padding:0px;
margin:0px;
text-overflow:ellipsis;
border-color:blcak;
}
tr{
overflow:hidden;
text-overflow:ellipsis;
}
.mycss{
border-width:0px;
border-bottom-style:none;
}
.mycss2{
border:1px solid #000FFF;
border-top-width:0px;
color:#000FFF;
font-size:40px;
text-align:center;
vertical-align:middle;
font-family:"宋体";
}
</style>
</head>
<body>
<table class="web_table" id="web_table" cellpadding="0" cellspacing="0" boder="1">
<tr>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
<td class='grid_cell2'> </td>
</tr>
<tr>
<td class='grid_cell'> 1</td>
<td class='grid_cell'> </td>
<td class='grid_cell'> col3 </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
</tr>
<tr class="mycss">
<td class="mycss"> </td>
<td class="mycss"> </td>
<td class="mycss"> </td>
<td class="mycss"> </td>
<td class="mycss"> </td>
<td class="mycss"> </td>
</tr>
<tr>
<td class='mycss2'> 3</td>
<td class='mycss2'> </td>
<td class='mycss2'> col3 </td>
<td class='mycss2'> </td>
<td class='mycss2'> </td>
<td class='mycss2'> </td> </tr>
<tr>
<td class='grid_cell'>4 </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> col3 </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
<td class='grid_cell'> </td>
</tr>
</table>
</body>
</html>
<HTML>
<HEAD>
<style>
/*行标题单元格*/
.titleCell{
overflow:hidden;
background-color:#e4ecf7;
border-color:#9eb6ce;
border-style:solid;
border-left-width:0px;
border-top-width:0px;
border-right-width:1px;
border-bottom-width:1px;
text-align:center;
white-space:nowrap;
text-overflow:clip;
background-repeat:no-repeat;
background-position:center;
padding:0px;
margin:0px;
}
.web_table {
-moz-user-select: none;
z-index: 0;
background-color: #ffffff;
table-layout: fixed;
border-spacing:0px;
left:0px;
top:0px;
width:0px;
height:0px;
padding:0px;
margin:0px;
border-collapse: separate;
empty-cells: show;
}
.gridCell{
white-space:nowrap;
text-overflow:clip;
overflow:hidden;
background-repeat:no-repeat;
background-position:center;
border-left-width:0px;
border-top-width:0px;
border-right-width:1px;
border-bottom-width:1px;
border-style:solid;
border-color:#D0D7D5;
padding:0px;
margin:0px;
}
.firstRowCell{
border-color:#9eb6ce;
border-style:solid;
border-left-width:0px;
border-top-width:0px;
border-right-width:0px;
border-bottom-width:0px;
}
.firstColCell{
border-width:0px;
}
</style>
<Script>
function test(){
var cell = document.getElementById("a");
alert(cell.offsetHeight);
var row = document.getElementById("b");
alert(row.offsetHeight);
alert(cell.clientHeight);
alert(row.clientHeight);
}
</script>
</HEAD>
<BODY>
<TABLE class=web_table cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=firstRowCell style="WIDTH: 0px; HEIGHT: 0px"></TD>
<TD class=firstRowCell style="WIDTH: 50px"></TD>
<TD class=firstRowCell style="WIDTH: 100px"></TD>
<TD class=firstRowCell style="WIDTH: 100px"></TD>
<TD class=firstRowCell style="WIDTH: 100px"></TD>
<TD class=firstRowCell style="WIDTH: 100px"></TD></TR>
<TR>
<TD class=firstColCell style="HEIGHT: 20px"></TD>
<TD class=titleCell> </TD>
<TD class=titleCell>A</TD>
<TD class=titleCell>B</TD>
<TD class=titleCell>C</TD>
<TD class=titleCell>D</TD></TR>
<TR>
<TD class=firstColCell style="HEIGHT: 20px"></TD>
<TD class=titleCell>1</TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD></TR>
<TR id=b style="height:0px;border:none;border-width:0px;">
<TD style="HEIGHT: 0px;line;border:none;border-width:0px;height:0px;"></TD>
<TD style="border-width:0px;"></TD>
<TD id=a style="border:none;border-width:0px;height:0px;"></TD>
<TD style="border:none;border-width:0px;height:0px;"></TD>
<TD style="border:none;border-width:0px;height:0px;"></TD>
<TD style="border:none;border-width:0px;height:0px;"></TD></TR>
<TR>
<TD class=firstColCell style="HEIGHT: 20px"></TD>
<TD class=titleCell>3</TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD></TR>
<TR>
<TD class=firstColCell style="HEIGHT: 20px"></TD>
<TD class=titleCell>4</TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD>
<TD class=gridCell> </TD></TR></TBODY></TABLE>
<input type=button value="button" onclick="test();">
</BODY></HTML>
<tr style="height:0px;line-height:0px;font-size:0px;border:none;">
<td class='grid_cell' style="height:0px;line-height:0px;font-size:0px;border:none;"> </td>
<td class='grid_cell' style="height:0px;line-height:0px;font-size:0px;border:none;"> </td>
<td class='grid_cell'style="height:0px;line-height:0px;font-size:0px;border:none;"> </td>
<td class='grid_cell' style="height:0px;line-height:0px;font-size:0px;border:none;"> </td>
<td class='grid_cell' style="height:0px;line-height:0px;font-size:0px;border:none;"> </td>
<td class='grid_cell' style="height:0px;line-height:0px;font-size:0px;border:none;"> </td>
</tr>