Ich befinde mich im IE6 im Standard Mode. Ich habe eine Tabelle innerhalb eines DIV. Die Tabelle hat height:100%. Wird nun das Div per JS in der Höhe verändert, so passt sich die Tabelle in ihrer Höhe nicht an.
Kann ich nicht nachvollziehen, bei mir tut es das.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
#test
{
position:absolute;
width:350px; height:100px;
background-color: #090;
}
#test table
{
width:100%;height:100%;
border:1px solid black;
}
</style>
</head>
<body>
<div id="test" onclick="this.style.height = ( this.offsetHeight + 5 ) + 'px';">
<table>
<tr> <td> XXXXX </td> <td> YYYY </td>
<tr> <td> XXXXX </td> <td> YYYY </td>
</table>
</div>
</body>
</html>
In deinem code muss ein Fehler sein.
Struppi.
--
Javascript ist toll (Perl auch!)
Javascript ist toll (Perl auch!)