如何实现单行两列百分比宽度、满屏。
下面的代码不能实现100%的高度,宽度可以。如何实现满屏呢?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>满屏</title>
<style>
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#div1 {
float:right;
margin:0px;
width:50%;
height:100%;
background:#ccd2de;
}
#div2 {
float:left;
margin:0px;
width:50%;
height:100%;
background:#e0efde;
}
</style>
</head>
<body>
<div id="div1"></div>
<div id="div2"></div>
</body>
</html>