0

大家好,我需要为新的 cms 编解码器管理面板。

有3个主要的div。

header这不是固定的。

sidebar这是在屏幕的右侧

content位于侧边栏的右侧

这是描述问题的图片:

http://i.stack.imgur.com/gLKN7.png

我该怎么做?

我有点迷路了

好吧,我试图做这样的事情:

#main { height: 100%; } 
#header { width: 100%; height: 43px; position:absolute; z-index: 2; } 
#layer2 { position: absolute; z-index: 1; width: 100%; float: right; margin-top: 43px; } 
#content { margin-right: 224px; } 
#sidebar { float: right; width: 224px; min-height: 100%; margin-right: -100%; } 

和html:

<div id="main">
    <div id="header>HEADER</div>
    <div id="layer2">
        <div id="content">
            content
        </div>
        <div id="sidebar">
            sidebar
        </div>
     </div>
</div>
4

0 回答 0