並排顯示兩個iFrame

並排顯示兩個iFrame

並排顯示兩個iFrame


資料來源: http://hk.uwenku.com/question/p-yvizljyr-rw.html

原問題:

<html> 
	<head> 
		<meta charset="utf-8"> 
		<title>Split</title> 
	</head> 
	<body> 

		<iframe src="link_v1" frameborder="0" scrolling="yes"       
				style="overflow: hidden; height: 100%; 
				   width: 49%; float: left; " height="100%" width="49%" 
				align="left"> 
				</iframe> 

		<iframe src="link_v2" frameborder="0" scrolling="yes" 
				 style="overflow: hidden; height: 100%; 
				 position: absolute; 
				 width: 49%; " height="100%" width="49%"         
				 align="right"> 
				 </iframe> 
	</body> 
</html>

解答:

<iframe src="link_v1" frameborder="0" scrolling="yes"       
           style="height: 100%; 
              width: 49%; float: left; " height="100%" width="49%" 
           align="left"> 
           </iframe> 

<iframe src="link_v2" frameborder="0" scrolling="yes" 
            style="overflow: hidden; height: 100%; 

            width: 49%; " height="100%" width="49%"         
            align="right"> 
            </iframe>  

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *