好的,这是我的问题的图像.. https://www.dropbox.com/s/s30wathhiqpky9e/help.JPG
问题是这两个都是 DIV,宽度相同,但它们只是不对齐!我该如何解决这个问题。我想要的是它们对齐在一起,就好像它们的大小一样......这是html代码
<!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>Welcome</title>
<style type="text/css">
.div_top {
height:50px;
padding:5px;
margin:0 auto;
width:1100px;
border:dotted;
border-width:1px;
}
.div_top_ads {
float:right;
position:relative;
}
#div_nav_bar{
width:1100px;
height:30px;
margin:auto;
opacity:10%;
margin-top:auto;
background-color:#CCC;
}
body {
margin-top: 0px;
}
.divme {
width:100%;
}
</style>
</head>
<body>
<div class="div_top"> hello
<div class="div_top_ads">Content for New Div Tag Goes Here</div>
</div>
<div class="divme">
<div id="div_nav_bar">yello!</div>
</div>
</body>
</html>