2007-10-29
疑惑:一个页面Iframe过多
关键字: dhtml如果一个页面的iframe太多,会造成什么样的后果呢
如下面的页面index.html
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>testtitle>
- <style type="text/css">
- body {
- margin: 0px;
- }
- -->
- style>
- head>
- <body>
- <center>
- <iframe src="/include/topMenu_sz.jsp" width="1000" height="130" scrolling="no" frameborder="0" noresize="noresize" id="topFrame"></iframe>
- <iframe src="/include/midder.jsp" width="1000" height="460" scrolling="no" frameborder="0" noresize="noresize" id="midder"></iframe>
- <iframe src="/include/bottom.jsp" scrolling="no" frameborder="0" width="1000" height="20" noresize="noresize" id="bottom"></iframe>
- </center>
- </body>
- </html>
而其中的第二个iframe,即 midder.jsp包含另外两个iframe.
- <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="375" valign="top" id="leftTD"><iframe id="left" width="385" height="458" src="/left.jsp" frameborder="0" scrolling="no" id="left" noresize></iframe></td>
- <td width="620" valign="top" id="mapAreaTD"><iframe width="620" height="458" id="mapArea" src="/area.jsp" frameborder="0" scrolling="no" noresize></iframe></td>
- </tr>
- </table>
而left.jsp又包含另外一个iframe,content.jsp
每次加载这个页面的时候都不是从上面开始加载的,从midder.jsp这个页面加载的
这样做虽然麻烦,但便于维护和修改
请大家分析一下怎么重构好点,是div+css还是页面内容动态生成,
发表评论
- 浏览: 4513 次
- 性别:

- 来自: SZ,China

- 详细资料
搜索本博客
我的相册
新建 BMP 图像
共 10 张
共 10 张
最新评论
-
[转载]搜索关键字高亮显 ...
有点启发
-- by gw_noah -
WEB GIS网址收藏
...
-- by 二十一






评论排行榜