我正在爲html5和javascript中的動態圖創建一個應用程序。我希望屏幕上的4個圖形在任何設備上顯示爲4個象限,此應用程序可以工作。這是我創造可以在html5標籤的iframe標籤中提供高度和寬度的百分比嗎?
<!DOCTYPE HTML>
<html>
<head>
<iframe src = "file.html" height="500" width="500" align = "left" frameborder = "0"> </iframe>
<iframe src="file2.html" height="500" width="500" align = "middle" frameborder = "0"></iframe>
<iframe src="file3.html" height="500" width="500"align = "middle" frameborder = "0"></iframe>
<iframe src="file4.html" height="500" width="500"align = "middle" frameborder = "0"></iframe>
</head>
</html>
您的應用程序 「作品」。現在有什麼問題? – Yaje
他在標題中提到了這個問題。他希望使用百分比而不是高度和寬度的精確像素值。 – Maxzeroedge
[全屏iframe的高度爲100%]的可能重複(https://stackoverflow.com/questions/5867985/full-screen-iframe-with-a-height-of-100) –