惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
J
Java Code Geeks
有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
量子位
D
Docker
V
Visual Studio Blog
博客园 - 司徒正美
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
U
Unit 42
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
V
V2EX
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
Vercel News
Vercel News
C
Check Point Blog

博客园 - flyingbird

.net DateTime 时间格式为毫秒 - flyingbird 水印+微图图(转http://tb.blog.csdn.net/TrackBack.aspx?PostId=721170) 今天的自省,从今天开始,做个勤快的人 一个总裁做企业的十条心得(转载) HttpWebRequest 向网站提交数据(转载) left join/right join/inner join(转载) 在C#.net中如何操作XML 关于Cookie中的Path和domain Javascript - HTML的request类 - flyingbird Access与Sql Server之ASP代码比较 - flyingbird - 博客园 WAP常见问题问答大全 HashTable的遍历 (转)web开发过程中要注意的问题 Javascript实现trim() 联动效果 http 500内部服务器错误解决 个人网站,个人站长,seo ,搜索引擎优化 快捷键 生成静态页大全[ASP/PHP/ASPX] 收集自落伍论坛
1个网页分成两个固定的部分来显示
flyingbird · 2007-04-20 · via 博客园 - flyingbird

1.
<html>
<style>body{margin:0;}</style>
<body>

<div style="background-color:blue;width:100%;height:20%;overflow-y:auto;">
      <br/>1<br/>1<br/>1<br/>1
</div>
<div style="background-color:green;width:100%;height:80%;overflow-y:auto;">
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/><br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/><br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/>
</div>

</body>
</html>
2.
<html>
    <head>
<style>body{margin:0;}</style>
<script>
function fixedDiv(){
    var d1 = document.getElementById("div1");
    var d2 = document.getElementById("div2");
    var h = window.document.body.clientHeight;
    d1.style.height=h*0.2;
    d2.style.height=h*0.8;
}
window.onload=function(){
    fixedDiv();
}
window.onresize=function(){
    fixedDiv();
}
</script>
    </head>
    <body>

<div id="div1" style="background-color:blue;width:100%;overflow-y:auto;">
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1
</div>
<div id="div2" style="background-color:green;width:100%;overflow-y:auto;">
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1<br/>1
      <br/>1<br/>1<br/>1<br/>1<br/>1<br/>1
</div>

    </body>
</html>
3.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>split</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="top"></div>
<div id="bottom">

</div>
</body>
</html>

//style.css
* {
margin:0;
padding:0;
}

#top {
background-color:yellow;
width:100%;
height:20%;
overflow:auto;
}

#bottom {
background-color:green;
width:100%;
height:80%;
overflow:auto;
}