日期:2014-05-17  浏览次数:20600 次

frame框架高度不能自适应
RT,main框架的高度是会变化的,bottom的位置不能随着main高度的变化而变化,求大虾们帮帮忙 代码如下
HTML code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Web_HengliSeed.index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<frameset rows="350,*"  frameborder="no"  framespacing="0"  border="0" style="height:390%;" >
    <frame src="YF_Top.aspx" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="tops" />
  <frameset rows="*,90" style="overfolw:scrllo" >
  <frameset cols="381,*"  id="frame" style="overfolw:scrllo">
    <frame  src="YF_Left.aspx" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="lefts" />
    <frame src="Default.aspx"  name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
  </frameset>
    <frame src="YF_Bottom.aspx" noresize="true" frameborder="NO" name="bottomFrame" scrolling="no" marginwidth="0" marginheight="0" target="bottoms" />
</frameset>
</frameset>
<body>
<form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>




还有一个问题,当指针在页面里的时候,鼠标滚轮就没有用了,大家帮帮忙,谢谢谢谢

------解决方案--------------------
HTML code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<frameset rows="350,*,90"  frameborder="no"  framespacing="0"  border="0" >
    <frame src="YF_Top.aspx" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="tops" />
    <frameset cols="381,*"  id="frame" style="overfolw:scrllo">
        <frame  src="YF_Left.aspx" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="lefts" />
        <frame src="Default.aspx"  name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
    </frameset>
    <frame src="YF_Bottom.aspx" noresize="true" frameborder="NO" name="bottomFrame" scrolling="no" marginwidth="0" marginheight="0" target="bottoms" />
</frameset>
<noframes></noframes>
</html>

------解决方案--------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>

头部这样写, 让兼容性扩展到最大即可.