1
这个想法是让横幅和导航栏卡在浏览器窗口的顶部,我不想滚动,并且下面的内容可以滚动。 contentleft和contentright的两个部分我想要有相同的高度,即使内容不是很大。滚动问题滚动不起作用
@charset "utf-8";
body {
margin: 0px;
padding: 0px;
}
.banner {
width: 100%;
height: 125px;
background-color: #034569;
position: relative;
top: 0px;
}
.nav {
width: 100%;
height: 50px;
background-color: #235B79;
}
.contentwrapper {
width: 100%;
background-color: #aaaaaa;
position: fixed;
top: 175px;
overflow-y: scroll;
}
#contentleft {
width: 25%;
height: auto;
background-color: #034569;
float: left;
}
#contentright {
width: 75%;
height: auto;
background-color: #ffffff;
float: right;
}