求一个代替frameset将网页分为上中下三栏的代码

lrose1314 2012-05-25 03:28:00
我原来是用的frameset col="162,*,20" 这种形式的,但是有很多问题,现在想用div+iframe代替 ,但是现在上中实现了 最下的定位不到最下面,求一个这样的代码,谢谢
...全文
229 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lrose1314 2012-06-07
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

无私奉献哦,下面代码我完成的项目后台主页(支持显隐主窗体左端内容)
HTML code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ZS.SuccessBullion.manager._default" %>

<%@ Import Namespace="Syste……
[/Quote]虽然我自己解决了 但是还是很感谢您的回贴
遊戲王千金 2012-05-25
  • 打赏
  • 举报
回复
无私奉献哦,下面代码我完成的项目后台主页(支持显隐主窗体左端内容)

<%@ 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>

62,267

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧