61,112
社区成员
发帖
与我相关
我的任务
分享
#main {
padding-right: 45px; padding-left: 45px; padding-bottom: 20px; padding-top: 45px; height: auto! important
}
#logo {
float: left; width:20%; height: 120px;
}
#flash { width:60%; height:400px; float:left; display:inline}
#right-top {width:100px; float:left; display:inline}
<div id="main">
<div id="home-top">
<div class="clear"></div>
<div id="logo"></div>
</div>
<div id="flash"><img src="images/daily-bg.jpg" /></div>
<div id="right-top"><img src="images/right_top.gif" /></div>
</div>
<!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 type="text/css">
*{
margin:0;
padding:0;
}
#main {
padding-right: 45px; padding-left: 45px; padding-bottom: 20px; padding-top: 45px;
}
#home-top {
float: left; width:20%; height: 120px; overflow:hidden;
}
#flash { width:60%; height:400px; float:left; display:inline;overflow:hidden;}
#right-top {width:20%; float:left; display:inline;overflow:hidden;}
.clear{
clear:both;
}
</style>
</head>
<body>
<div id="main">
<div id="home-top">
<div id="logo"></div>
</div>
<div id="flash"><img src="images/daily-bg.jpg" /></div>
<div id="right-top"><img src="images/right_top.gif" /></div>
<div class="clear"></div>
</div>
</body>
</html>
*************
链接…… 图像 注释<!--..........--> 平行线