min-width:设置最小宽度(在IE不支持)。
expression_r():IE支持,可在样式中嵌入脚本。
<title>宽度自适应测试</title>
<style
type="text/css">
body{margin:0px;padding:0px;}
.content{width:100%;
height:800px; min-width:980px;
width:expression_r((documentElement.clientWidth <
980) ? "980px" : "100%" );}
.left{width:24%; height:500px;
margin-left:1%; background:#0066CC; float:left;}
.center{width:50%;
height:500px; float:left; background:#993300;}
.right{width:24%;
height:500px; float:left;
background:#CC9900;}
</style>
</head>
<body>
<center>
<div class="content">
<div
class="left"></div>
<div
class="center"></div>
<div
class="right"></div>
</div>
</center>
</body>