<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MainManage.aspx.cs" Inherits="Back_operate_MainManage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>网站后台管理控制面板</title>
<meta content="text/html"; http-equiv="Content-Type"/>
<style type="text/css">
.navPoint
{
color:#FFFFFF;
font-family:Webdings;
font-size:5pt
}
.style1
{
width: 100%;
height: 101%;
}
</style>
<script type="text/javascript">
function switchSysBar()
{
if(switchPoint.innerHTML==7)
{
switchPoint.innerHTML=8
document.all("frmTitle").style.display="none"
}
else{
switchPoint.innerHTML=7
document.all("frmTitle").style.display=""
}
}
</script>
</head>
<body > <table border="0px" cellpadding="0" cellspacing="0" style="height:100%;" width="100%">
<tbody>
<tr>
<td rowspan="2" align="center" valign="middle" id="frmTitle">
<iframe frameborder="0" id="BoardTitle" scrolling="auto" src="MainNavigator.aspx"
style="height:100%; width: 170px;"></iframe>
</td>
<td rowspan="2" style="background-color: #23458B; width: 10pt;" onclick="switchSysBar()">
<span class="navPoint" id="switchPoint" title="关闭/打开菜单">7</span>
</td>
<td style="width: 100%; height:100%;">
<iframe frameborder="0" id="frmtop" src="MainContent.aspx" style="height:8px;
width:100%;"></iframe>
</td>
</tr>
<tr>
<td class="style1">
<iframe frameborder="0" id="frmright" src="List_MessageShow.aspx" style="height:100%;
width:100%;"></iframe>
</td>
</tr>
</tbody>
</table>
</body>
</html>这是我写的一个网站后台管理的,实现左边导航,右边刷新的那种功能,但是为什么,我左边的网页只显示一半呢,也就是左边的iframe的高度也就是有300px,但是我确实是把左边iframe的高度弄成100%了啊,还有,左边的点击链接的时候,为什么不是在右边显示啊??target如果设成右边iframe的ID,我用的hyperlink就不跳转了,点了没用,如果不设成右边iframe的ID,可以跳转,但是就不能在右边的框框里显示了,到底是什么原因啊???浏览器问题么???急求高手啊!!!!我给您一百分,项目赶得紧,请大家多帮帮忙啦!!谢谢啊!!
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>网站后台管理控制面板</title>
<meta content="text/html"; http-equiv="Content-Type"/>
<style type="text/css">
.navPoint
{
color:#FFFFFF;
font-family:Webdings;
font-size:5pt
}
.style1
{
width: 100%;
height: 101%;
}
</style>
<script type="text/javascript">
function switchSysBar()
{
if(switchPoint.innerHTML==7)
{
switchPoint.innerHTML=8
document.all("frmTitle").style.display="none"
}
else{
switchPoint.innerHTML=7
document.all("frmTitle").style.display=""
}
}
</script>
</head>
<body > <table border="0px" cellpadding="0" cellspacing="0" style="height:100%;" width="100%">
<tbody>
<tr>
<td rowspan="2" align="center" valign="middle" id="frmTitle">
<iframe frameborder="0" id="BoardTitle" scrolling="auto" src="MainNavigator.aspx"
style="height:100%; width: 170px;"></iframe>
</td>
<td rowspan="2" style="background-color: #23458B; width: 10pt;" onclick="switchSysBar()">
<span class="navPoint" id="switchPoint" title="关闭/打开菜单">7</span>
</td>
<td style="width: 100%; height:100%;">
<iframe frameborder="0" id="frmtop" src="MainContent.aspx" style="height:8px;
width:100%;"></iframe>
</td>
</tr>
<tr>
<td class="style1">
<iframe frameborder="0" id="frmright" src="List_MessageShow.aspx" style="height:100%;
width:100%;"></iframe>
</td>
</tr>
</tbody>
</table>
</body>
</html>这是我写的一个网站后台管理的,实现左边导航,右边刷新的那种功能,但是为什么,我左边的网页只显示一半呢,也就是左边的iframe的高度也就是有300px,但是我确实是把左边iframe的高度弄成100%了啊,还有,左边的点击链接的时候,为什么不是在右边显示啊??target如果设成右边iframe的ID,我用的hyperlink就不跳转了,点了没用,如果不设成右边iframe的ID,可以跳转,但是就不能在右边的框框里显示了,到底是什么原因啊???浏览器问题么???急求高手啊!!!!我给您一百分,项目赶得紧,请大家多帮帮忙啦!!谢谢啊!!
<frameset rows="68,*" border="0" frameSpacing="0" frameBorder="0">
<frame src="top.aspx" name="topFrame" scrolling="no" noresize>
<frameset id="mainFrame" cols="178,10,*" framespacing="0" frameborder="0">
<frame src="menu.aspx" name="leftFrame" scrolling="no" noresize>
<frame src="left.htm" name="Left" scrolling="no" noresize>
<frame src="default.aspx" name="rightFrame" scrolling="no">
</frameset>
</frameset>
或master母版页
menu.aspx中设置href="" target="rightFrame"
iframe自适应高度
唉,不可以的,要求用iframe
比如左边这样 <iframe frameborder="0" id="frmleft" name="left" src="Menu.aspx" class="left_iframe"
allowtransparency="true"></iframe>
右边 <iframe class="main_iframe" id="frmright" name="tabWin" src="index_center.aspx" frameborder="0"
scrolling="yes"></iframe>
<asp:HyperLink ID="HyperLink1" runat="server" onclick="window.parent.frmright.location='Default2.aspx'" style="cursor:pointer;">HyperLink</asp:HyperLink>2.iframe设置Height为100%是不起作用的,一般处理是将iframe设置成自适应src说对应的网页高度!
<asp:HyperLink ID="HyperLink1" runat="server" onclick="window.parent.frmright.location='Default2.aspx'" style="cursor:pointer;">HyperLink</asp:HyperLink>2.iframe设置Height为100%是不起作用的,一般处理是将iframe设置成自适应src说对应的网页高度!
src="user_left1.aspx" style="width: 100%; height: 100%"></iframe> 这个是右侧的要显示内容的 <iframe name="main" scrolling="auto" frameborder="0" width="100%" height="100%" target="_self"
src="user/proj_input.aspx" style="width: 100%; height: 100%"></iframe> 注意两个iframe的target 一个是main一个是_self
还有我左侧用得是树形的菜单 每个超链接 <asp:TreeNode NavigateUrl="~/proj_target_info.aspx" Text="项目目标后评价数据录入" Value="项目目标后评价数据录入" target="main">
</asp:TreeNode> 的target都要标识上target=“main” 这样才能正确的显示在右侧上。
有什么问题你可以q我 122600112
<frame src="top.html" noresize="noresize" frameborder="0" name="topFrame" marginwidth="0"
marginheight="0" scrolling="no">
<frameset rows="*" cols="195,*" id="frame">
<frame src="left.html" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0"
frameborder="0" scrolling="auto">
<frame src="right.html" name="main" marginwidth="0" marginheight="0" frameborder="0"
scrolling="yes">
</frameset>
<frame src="UntitledFrame-1" noresize="noresize" frameborder="0" name="bottomFrame"
marginwidth="0" marginheight="0" scrolling="no">
<noframes>
<body>
</body>
</noframes>
</frameset>