如何隐藏框架页面的左侧栏,写了不能实现?请高手指点?
如何隐藏框架页面的左侧栏,写了不能实现?请高手指点?
1.网页框架结构:
<%@ Register TagPrefix="uc1" TagName="Head" Src="../Head.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Foot" Src="../Foot.ascx" %>
<%@ Page language="c#" Codebehind="MainFrame.aspx.cs" AutoEventWireup="false" Inherits="JYErp.Service.MainFrame" %>
<%@ Register TagPrefix="uc1" TagName="Left" Src="Left.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>MainFrame</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script type="text/javascript">
function mbarShowHideDiv()
{
var divMusicLst = document.getElementById("ulStarLevel");
if(divMusicLst.style.display == "none")
{
divMusicLst.style.display="block"
}
else
{
divMusicLst.style.display="none"
}
}
</script>
</HEAD>
<body bottomMargin="0" bgColor="#f9f9f9" leftMargin="0" topMargin="0" rightMargin="0"
MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td colSpan="2"><FONT face="宋体">
<uc1:Head id="Head1" runat="server"></uc1:Head></FONT></td>
</tr>
<tr>
<td vAlign="top" width="152" bgColor="#f9f9f9" height="100%"><FONT face="宋体">
<uc1:Left id="Left1" runat="server"></uc1:Left></FONT></td>
<td vAlign="top" width="100%" height="465"><iframe id="main" name="main" marginWidth="0" marginHeight="0" src="Conk_Report.aspx" frameBorder="0"
width="100%" scrolling="auto" height="100%"></iframe>
</td>
</tr>
<tr>
<td colSpan="2"><FONT face="宋体">
<uc1:Foot id="Foot1" runat="server"></uc1:Foot></FONT></td>
</tr>
</table>
</form>
</body>
</HTML>
2.左侧UC1:left用户自定义控件结构
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Left.ascx.cs" Inherits="JYErp.Service.Left" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<style type="text/css">BODY { FONT-SIZE: 10px; COLOR: #333 }
TD { FONT-SIZE: 10px; COLOR: #333 }
TH { FONT-SIZE: 10px; COLOR: #333 }
A:link { }
A:visited { COLOR: black; TEXT-DECORATION: none }
A:hover { COLOR: black; TEXT-DECORATION: none }
A:active { COLOR: black; TEXT-DECORATION: none }
</style>
<LINK href="1.css" type="text/css" rel="stylesheet">
<table height="100%" cellSpacing="0" cellPadding="0" border="0">
<tr>
<td vAlign="top" bgColor="#f9f9f9">
<table height="100%" cellSpacing="0" cellPadding="0" width="142" border="0">
<tbody>
<tr style="PADDING-BOTTOM: 5px; PADDING-TOP: 0px" height="1">
<td vAlign="top" width="142">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td colSpan="3" height="2"></td>
</tr>
</table>
</td>
</tr>
<tr id="personal-portal" height="1">
<td vAlign="top"> </td>
</tr>
<tr style="PADDING-BOTTOM: 5px; PADDING-TOP: 10px" height="1">
<td vAlign="top"><FONT face="宋体"></FONT></td>
</tr>
<tr id="personal-link" height="1">
<td vAlign="top"><FONT face="宋体">
<P> </P>
<P align="justify"> </P>
<P align="right"> </P>
</FONT>
</td>
</tr>
<tr>
<td align="right"> </td>
</tr>
</tbody>
</table>
</td>
<td width="10" background="../images/bian.gif">
<table height="100%" cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="28"><a onclick="" href=""><IMG onclick="" height="95" src="../images/bian1.gif" width="10" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>