页面布局之框架运用
2010-12-03 13:38 Peter Jin 阅读(465) 评论(0) 编辑 收藏 举报
在页面中使用框架进行布局,运用的好将非常强大,很多效果都可以表现出来,下面是一种简单的后台管理布局:
<html>
<head runat="server">
<title>后台管理</title>
</head>
<frameset rows="50,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="AdminFrameTop.aspx" name="head" frameborder="no" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset name="myFrame" cols="199,*" frameborder="no" border="0" framespacing="0">
<FRAME name="leftFrame" marginWidth="0" marginHeight="0" src="AdminFrameLeft.aspx" noResize target="main">
<FRAME frameborder="no" name="main" marginWidth="10" marginHeight="10" src="AdminFrameMain.aspx"
frameBorder="0" noResize target="_self">
</frameset>
</frameset>
<noframes><body>
</body>
</noframes>
</html>
<head runat="server">
<title>后台管理</title>
</head>
<frameset rows="50,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="AdminFrameTop.aspx" name="head" frameborder="no" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset name="myFrame" cols="199,*" frameborder="no" border="0" framespacing="0">
<FRAME name="leftFrame" marginWidth="0" marginHeight="0" src="AdminFrameLeft.aspx" noResize target="main">
<FRAME frameborder="no" name="main" marginWidth="10" marginHeight="10" src="AdminFrameMain.aspx"
frameBorder="0" noResize target="_self">
</frameset>
</frameset>
<noframes><body>
</body>
</noframes>
</html>
【补充】-注意下面特殊标记地方
<html>
<head id="Head1" runat="server">
<title>网站后台管理菜单页面</title>
<base target="main" />
</head>
<script type="text/javascript">
if (window == top)top.location.href = "AdminFrame.aspx";
</script>
<body>
</body>
</html>
<head id="Head1" runat="server">
<title>网站后台管理菜单页面</title>
<base target="main" />
</head>
<script type="text/javascript">
if (window == top)top.location.href = "AdminFrame.aspx";
</script>
<body>
</body>
</html>