只是厌倦了 2 div 垂直对齐的问题。我试过水平滚动出现在浏览器中,如何摆脱滚动?我有这个html:
<div id="responsive-admin-menu"></div>
<div id="content-wrapper"></div>
CSS代码是
#responsive-admin-menu {
width: 200px;
left:0px;
background-color: #404040;
height: 100%;
position: absolute;
min-height: 500px;
}
#content-wrapper {
position:absolute;
overflow:auto;
width:100%;
margin-left: 200px;
right:200px;
background-color: #fff;
padding: 15px;
}