我原来是用的frameset col="162,*,20" 这种形式的,但是有很多问题,现在想用div+iframe代替 ,但是现在上中实现了 最下的定位不到最下面,求一个这样的代码,谢谢
------解决方案--------------------------------------------------------
无私奉献哦,下面代码我完成的项目后台主页(支持显隐主窗体左端内容)
- HTML code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ZS.SuccessBullion.manager._default" %><%@ Import Namespace="System.Data" %><%@ Import Namespace="ZS.SuccessBullion" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head> <title>银金转账结算系统</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" content="C#"> <script type="text/javascript"> function ResizeMenu() { if (Menu.style.display == '') { Menu.style.display = 'none'; resizeIcon_Show.style.display = 'none'; resizeIcon_Hidden.style.display = ''; } else { Menu.style.display = ''; resizeIcon_Show.style.display = ''; resizeIcon_Hidden.style.display = 'none'; } } function Logout() { if (confirm("你确定要退出吗?")) { window.location.href = "logout.aspx"; } } </script> <style> #fr1 a { width: 100%; padding: 7px 0px 4px 20px; border-bottom: #DDE4EE solid 1px; background: url(../Images/aspnet/arrow.png) left center no-repeat; font-size:12px; color:#034AA7; text-decoration:none; } #fr1 a:hover {background:#bd0021; color:#fff;text-decoration:none} </style></head><body style="margin: 0px; overflow: hidden;"> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="background-image: url(../Images/aspnet/running_bg.gif);" height="20"> <table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="padding-left: 4px; font-weight: bold; font-size: 12pt; filter: Glow(Color=#FDCF9D, Strength=1) dropshadow(Color=#FDCF9D, OffX=2, OffY=1,); color: #811E18;"> 银金转账结算系统 <asp:Label ID="AssemblyVersion" runat="server" Text=""></asp:Label> </td> <td align="right" style="filter: Glow(Color=#FDCF9D, Strength=1) dropshadow(Color=#FDCF9D, OffX=2, OffY=1,); color: #811E18;"> 帐号 : <asp:Label ID="LoginUser" runat="server"></asp:Label> | <asp:Label ID="LoginDate" runat="server"></asp:Label> </td> </tr> </table> </td> </tr> <tr> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="110" valign="top" id="Menu" runat="server"> <% if (CommonFunc.GetCookie(Config.ManagerSessionName) == "") { Response.Write(" "); } else { Response.Write("<div style=\"width:181px;\">"); Response.Write("<div style=\"height:27px;background:url(../Images/aspnet/left_title.png) no-repeat\">"); Response.Write("<div style=\"padding:9px 0px 0px 30px;color:#FFF;font-weight:bold;font-size:14px\">控制面板</div>"); Response.Write("</div>"); Response.Write("<div id=\"fr1\" style=\"width:181px;padding:10px 10px;overflow:hidden;border-left:#CBD4E1 solid 1px;border-right:#CBD4E1 solid 1px;\">"); DataTable dt = ZS.SuccessBullion.BLL.ManagerBl.GetManagerMenu(CommonFunc.GetCookie(Config.ManagerSessionName)); foreach (DataRow dr in dt.Rows) { if (dr["modulePath"].ToString().Equals("msg")) Response.Write("<a href=\"" + dr["modulePath"].ToString() + "/InBoxMsg.aspx\" target=\"iframe_vip\">" + dr["moduleName"].ToString() + "</a>"); else if (dr["modulePath"].ToString().Equals("CheckFunds.aspx")) Response.Write("<a href=\"" + dr["modulePath"].ToString() +"\" target=\"_blank\">" + dr["moduleName"].ToString() + "</a>"); else Response.Write("<a href=\"" + dr["modulePath"].ToString() + "/\" target=\"iframe_vip\">" + dr["moduleName"].ToString() + "</a>"); } Response.Write("<a href=\"info/pwd.aspx\" target=\"iframe_vip\">修改密码</a>"); Response.Write("<a href=\"/manager/logout.aspx\" target=\"iframe_vip\" onclick=\"if(!confirm('您确定要退出吗?')) return false;\">安全退出</a>"); Response.Write("</div>"); Response.Write("<div style=\"height:11px;background:url(../Images/aspnet/fr1_footer.gif) no-repeat\"></div>"); Response.Write("</div>"); } %> </td> </td> <td width="7" id="BtnMenuHidden"> <span id="resizeIcon_Show" style="cursor: hand" onclick="javascript:ResizeMenu()" title="隱藏功能表"> <img src="../Images/aspnet/Resize_Hidden.gif" width="7" height="48"></span><span id="resizeIcon_Hidden" style="display: none; cursor: hand" onclick="javascript:ResizeMenu()" title="顯示功能表"><img src="../Images/aspnet/Resize_Show.gif" width="7" height="48"></span> </td> <td> <iframe id="iframe_vip" style="visibility: inherit" name="iframe_vip" src="welcome.aspx" frameborder="0" scrolling="auto" width="100%" height="100%" runat="server"></iframe> </td> </tr> <tr> <td height="20"> <iframe id="Bottom" style="visibility: inherit" name="Bottom" src="" frameborder="0" scrolling="no" width="100%" height="20" runat="server"></iframe> </td> </tr> </table></body></html>