我該如何將整個iframe集中?如何居中整個iFrameset?
<html>
<head>
<style>
</style>
</head>
<frameset rows="100,*" frameborder="0" border="0" framespacing="0">
<frame name="topNav" src="banner.php">
<frameset cols="200,*" frameborder="0" border="0" framespacing="0">
<frame name="menu" src="menu.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
<frame name="content" src="dashboard.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
</frameset>
</frameset>
</html>
我試圖<div>
和應用text-align:center;
但它沒有工作? !
一個'frame'與**'iframe'不相同。您正在使用HTML5中[過時](http://www.w3.org/TR/html5/obsolete.html#frames)的框架/框架集,請停止使用它們。 –
你想使用幀的原因是什麼?我很確定這是沒有必要的,強烈建議不要使用幀... – giorgio