iFrame-Formatierung durch externes Style-Sheet

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

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>
 
Die beiden Varianten 2 und 3 unterscheiden sich nicht. Der einzige Grund kann sein, dass du die Datei falsch eingebunden hast. Du könntest z.B. mal das link-Tag schließen. Vielleicht ist auch der Pfad falsch.
 
Hast recht, ich hatte irgendwann das Style-Sheet noch mal geändert und - schnell, schnell mit copy + paste statt
Code:
      width:300px;
      height:300px;
Code:
      width:300px;
      width:300px;
eingetragen.
So war ich der Meinung, dass es nicht eingebunden wurde.
Merci noch mal.
 

Neue Beiträge

Zurück