zoukankan      html  css  js  c++  java
  • 使用iframe设置frameset的高度

    index.html的页面代码如下:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>********</title>
    </head>
    <frameset cols="1400" frameborder="no" border="0" framespacing="0" scrolling="yes" height="2000">
    <frameset rows="154,2600,154" cols="*" framespacing="0" frameborder="no" border="0" bordercolor="#b7d4f4">
      <frame src="top.html" name="topFrame" scrolling="No" id="topFrame" title="topFrame" />
      <frameset rows="2600" cols="236,*" framespacing="0" frameborder="no" border="0" bordercolor="#b7d4f4">
        <frame src="left.html" name="leftFrame" scrolling="No" id="leftFrame" title="leftFrame" />
        <frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" />
      </frameset>
      <frame src="top.html" name="bottomFrame" scrolling="No" id="topFrame" title="topFrame" />
    </frameset>
    </frameset>
    <noframes>
    <body></body>
        </noframes>
    </html>

    ------------------------------------------------------------------------------------------------------------- default.html代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>***************</title> </head> <body style="margin: 0px auto;height: 3000px;1440px;"> <iframe src="index.html" style="height:100%;100%;border- 0px;"> </iframe> </body> </html>
  • 相关阅读:
    从头认识java-2.6 逗号操作符
    JavaScript基础知识
    特性选择器
    文本缩进
    如何使图片与导航栏对齐
    如何使用CSS选择器应用于子元素
    图像
    布局
    列表,表格和表单
    盒子
  • 原文地址:https://www.cnblogs.com/kingangWang/p/3175112.html
Copyright © 2011-2022 走看看