一、桌面布局
<!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></title>
</head>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
html,body{
height: 100%;
width:100%;
}
.SearchType{
background: red;
width: 400px;
height: 100%;
float: left; /*一、设置头部的部分 二、这里设置float 另一个不需要设置 */
}
.SearchContent{
width:auto;
height: 100%;
overflow: auto;
background: blue;
}
</style>
<body>
<section class="SearchType">
</section>
<section class="SearchContent">
asads
</section>
</body>
</html>