您可以尝试在标题内进行相对/绝对定位。
对于CSS,你可以尝试:
header {
margin: 0px 29px 29px 29px;
background: #CCC;
width:960px;
height: 160px;
vertical-align: bottom;
display: table-cell;
position: relative;
}
#search {
float:left;
width:215px;
background-color:red;
position: absolute;
bottom: 0px;
left: 0px;
}
#social {
float:right;
width:215px;
background-color:yellow;
position: absolute;
bottom: 0px;
right: 0px;
}
#logo {
float:center;
text-align:center;
position: absolute;
bottom: 0px;
left: 50%;
}
通过在文件头部中设置相对位置,可以将每个子元素设为绝对定位。这将允许您将每个子元素放置在标题的底部。
重要的部分是位置 CSS标签和离开,右和底部标签。见http://jsfiddle.net/9patj/10/
我复制了你建议的css,并将其粘贴到当前的样式上,结果是它将所有3个div放在标题区域之外。无论如何,谢谢 – user1752759 2012-04-25 15:57:51