首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

框架布局,用Frameset怎么实现固定宽度的居中

2012-10-29 
框架布局,用Frameset如何实现固定宽度的居中原来的代码:htmlheadmeta http-equivContent-Type con

框架布局,用Frameset如何实现固定宽度的居中
原来的代码:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>框架布局,用Frameset如何实现固定宽度的居中</title>
<head>
</head>
<frameset rows="130,*,40" frameborder="no" border="0" framespacing="0">
   <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
   <frame src="center.html" name="mainFrame" id="mainFrame" />
   <frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
<noframes>
<body></body>
    </noframes>
</html>

====================================================================

改过的代码

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>框架布局,用Frameset如何实现固定宽度的居中</title>
<head>
</head>
<frameset cols="*,1024,*" frameborder="no" border="0" framespacing="0">
<frame src="about:blank"></frame>
<frameset rows="130,*,40" frameborder="no" border="0" framespacing="0">
   <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
   <frame src="center.html" name="mainFrame" id="mainFrame" />
   <frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
<frame src="about:blank"></frame>
</frameset>
<noframes>
<body></body>
    </noframes>
</html>

热点排行