Thread IE Darstellung: Keine <table> im <div>? (6 answers)
Opened by Gast at 2004-06-24 17:47

Ronnie
 2004-06-24 19:22
#25808 #25808
User since
2003-08-14
2022 Artikel
BenutzerIn
[default_avatar]
So, das ganze mal als Seite zum ausprobieren:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>IE fails.</title>
<style type="text/css">
<!--
table { border-style: solid;
border-width: 3px;
}
.detail {
border-style: solid;
border-width: 1px;
border-color: P
background-color:#FFFFDD;
visibility: hidden;
position: absolute;
}

.outer {
border-style: solid;
border-width: 0px;
border-bottom-width: 1px;
border-color: േ
background-color:#DDDDFF;
padding: 1px;
}
-->
</style>
<script type="text/javascript">
<!--
function toggle_det(elementname)
{
if (document.getElementById(elementname).style.visibility == "visible" )
{
document.getElementById(elementname).style.visibility = "hidden";
document.getElementById(elementname).style.position = "absolute";
} else {
document.getElementById(elementname).style.visibility = "visible";
document.getElementById(elementname).style.position = "relative";
};
}
// -->
</script>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">
<a href="javascript:toggle_det('id1');">1. On/Off</a><br />
<div id="id1" class="detail">
<table><tr><td>Hello</td><td>World</td></tr>
<tr><td>IE</td><td>fails!</td></tr></table>
</div>

<a href="javascript:toggle_det('id2');">1. On/Off</a><br />
<div id="id2" class="detail">
<table><tr><td>Hello</td><td>World</td></tr>
<tr><td>Firefox</td><td>succeeds!</td></tr></table>
</div>
</body>
</html>

View full thread IE Darstellung: Keine <table> im <div>?