0
#container {
    width: 1000px;
    margin: 0 auto;
    background-color: #000000;
}
#header {
    width: 884px;
    height: 113px;
    position: relative;
    margin: auto;
    background-image: url(mybanner.png);
    background-repeat: no-repeat;
    border-bottom: 5px solid #333;
}
#leftnav{
    float: left;
    width: 140px;
    height: 800px;
    background-color: #F8AA3C;
    border-right: 1px dashed #694717;
}
#body{
    width: 550px;
    height: 800px;
    background-color: #333;
    margin: auto;
    padding: 10px 0px 0px 10px;
}
4

1 回答 1

0

缺少诸如您的 DOM 结构是什么以及试图将什么元素放在某个容器中的信息,我看到您使用了float:left样式,所以我猜它是一些块元素,在这种情况下,我只能建议为您的元素添加position: relative样式。leftnav

于 2013-05-10T22:14:59.523 回答