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

推荐订阅源

雷峰网
雷峰网
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
博客园 - Franky
L
LangChain Blog
GbyAI
GbyAI
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - 叶小钗
N
Netflix TechBlog - Medium
D
DataBreaches.Net
Martin Fowler
Martin Fowler
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
爱范儿
爱范儿
罗磊的独立博客
H
Help Net Security
云风的 BLOG
云风的 BLOG
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;
}