N
Netzwerkidi
Einen schönen Sonntag in die Runde,
ich habe ein kleines Problem mit einem iFrame bei der Verwendung eines externen Style-Sheets für die Formatierung dieses Frames - das will einfach nicht klappen, und ich frage mich, warum.
Vielleicht weiß einer, woran es liegt, bzw. ob das grundsätzlich nicht geht und warum nicht.
Beste Grüße
Idi
ich habe ein kleines Problem mit einem iFrame bei der Verwendung eines externen Style-Sheets für die Formatierung dieses Frames - das will einfach nicht klappen, und ich frage mich, warum.
Vielleicht weiß einer, woran es liegt, bzw. ob das grundsätzlich nicht geht und warum nicht.
Beste Grüße
Idi
HTML:
<html>
<head>
<link href="testiframecss.css"> <!-- iframe3 -->
<title>Test iFrame und CSS</title>
<style>
#iF2 {
width:200px;
height:200px;
}
</style>
<!-- externer File:
//testiframecss.css
#iF3 {
width: 300px;
height: 300px;
}
-->
</head>
<body>
<div>iF1 --> 100 x 100, OK!<br>
<iframe id="iF1" height="100" width="100" src="test.html">
</div>
</iframe>
<div>iF2 --> 200 x 200 (style intern), OK!<br>
<iframe id="iF2" src="test.html">iF2
</iframe>
</div>
<div>iF3 --> 300 x 300 (style extern), NICHT OK!!<br>
<iframe id="iF3" src="test.html">iF3
</iframe>
</div>
</body>
</html>