6.0w+
社区成员
<!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>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="yixianggao@126.com" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
<style type="text/css">
*
{
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
html
{
padding: 20px 0px 20px 0px;
}
body
{
background-color: black;
height: 100%;
}
#content
{
background-color: yellow;
height: 100%;
}
</style>
</head>
<body>
<div id="content">Hello World!</div>
</body>
</html>
<!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>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="yixianggao@126.com" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
<style type="text/css">
*
{
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
body
{
background-color: black;
height: 100%;
}
#content
{
background-color: yellow;
height: expression(document.body.offsetHeight-40);
margin: 20px 0px 20px 0px;
}
</style>
</head>
<body>
<div id="content">Hello World!</div>
</body>
</html>
<!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>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="yixianggao@126.com" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
<style type="text/css">
*
{
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
height:100%;
}
html
{
padding: 20px 0px 20px 0px;
overflow: hidden;
}
body
{
background-color: black;
}
#content
{
background-color: yellow;
overflow: auto;
}
</style>
</head>
<body>
<div id="content">
<!- 随便写,哈 -->
IE6-sp1-chs 和 IE7-chs 下均测试可用!2008-01-03 19:47:43
<div style="height: 2000px; width: 100px; background-color: #ffcccc;">测试块!</div>
还有一句,哈
</div>
</body>
</html>