日期:2014-05-16 浏览次数:20403 次
<!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>head_right怎么在不同分辨率全屏显示</title>
<style type="text/css">
*{
list-style:none;
margin:0;
padding:0;
}
.div{
width:100%;
}
.head{
width:100%;
height:123px;
background:#066;
}
.head_left{
width:181px;
height:123px;
float:left;
background:#096;
}
.head_right{
width:85%;
height:123px;
float:left;
background:#09C;
}
</style>
</head>
<body>
<div class="div">
<div class="head">
<div class="head_left">
左边
</div>
<div class="head_right">
右边
</div>
</div>
</div>
</body>
</html>
.head_right{
position:absolute;
width:100%;
height:123px;
float:left;
background:blue;
}