Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找有关 HTML 布局的帮助。这是小提琴> http://jsfiddle.net/jSUNt/ 基本上我想做的是让左边的“灰色”栏变成窗口的全高,右边的蓝色栏保持相对大小. 例如,随着内容变大,它会变大。
有人可以调整我的代码以实现这一点
试试这个:
#body{ width: 100%; } #menu { width: 30%; background-color: lightGray; height:100%; float: left; display:block; position:fixed; } #content { width: 70%; min-height: 50px; background-color: lightBlue; float:right; display:block; }