2014-10-07 26 views
0

我已經簡單的HTML代碼,如何顯示嵌套在div中的網頁?

<div id="overlay"> 
     <div> 
      <p>Content you want the user to see goes here.</p> 
      Click here to [<a href='#' onclick='overlay()'>close</a>] 
     <div> 
      <object type="text/html" data="http://google.com"></object> 
     </div> 
     </div> 
</div> 

我得到錯誤的,

此內容不能在一幀

如何顯示內部DIV網頁顯示?

回答

0

您應該使用<iframe>顯示頁面

<iframe src="http://example.com"></iframe> 
+0

得到同樣的錯誤 – 2014-10-07 05:49:57

+0

'google'是限制內''