web排版——实现:body全屏(width:100%;height:100%),分left与right两栏,left宽度为固定值(如200px),right宽度为全屏剩下的宽度
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
html,body
{
height:100%;
margin:auto;
width:100%;
}
</style>
</head>
<body>
<div style="background-color:red; float:left; height:100%;width:200px;">
</div>
<div style="background-color:blue; margin-left:200px; height:100%">
</div>
</body>
</html>