2011-07-21 36 views
0

只呈現Iframe1。 Iframe2被隱藏。我希望Iframe2從Iframe1的下邊框開始,並填充頁面的其餘部分。 (活生生的例子:http://flippa.com/auctions/2627927/siteCSS:第2個iframe不會呈現

<style type="text/css"> 
     #Iframe1 
     { 
      position: fixed; 
      width: 100%; 
      height:100px; 
      margin:0px; 
      z-index:2; 
     } 

     #Iframe2 
     { 
      position: fixed; 
      width: 100%; 
      margin:0px; 
      top:100px; 
      z-index:3; 
     } 
</style> 


<body> 
    <iframe src="http://www.google.com" id="Iframe1" 
    scrolling="no" frameborder="0"><iframe/> 

    <iframe src="http://www.yahoo.com" id="Iframe2" 
    scrolling="no" frameborder="0"> </iframe> 
</body> 

回答

0

那是你第一次iframe具有一個結束標記類似問題這個:

<iframe/>

,而不是像這樣:

</iframe>

2

你的第一個iframe中有一個無效的結束標記:

<iframe/> 

變化

</iframe> 
+0

感謝趕上! – Jason