道歉,如果我看起来相当“不炫”与CSS。我一直在试图设置以下...CSS定位相对于固定/绝对
#0 {
width: 100%;
height: y;
border: 1px solid black;
}
#a {
position: fixed;
float left;
width: x;
height: y;
border: 1px solid black;
}
#b {
position: relative;
float: left;
width: x;
height: y;
border-right: 1px solid black;
}
/* HTML */
<div id="0">Some div...</div>
<div id="a">Another div</div>
<div id="b">Final div...</div>
出于某种原因,如果我试图定位#B#A以下,#B将出现ontop的#a的,除非我声明为静态的位置或绝对的,但将需要手动定位顶部/左侧属性,并且这对于所有浏览器都不能正确显示。任何帮助将不胜感激!
现在修好了! (不得不声明的HTML,身体:(宽度:95%;))感谢所有的建议家伙!
可能您已经了解了定位。为更多检查这些链接http://css-tricks.com/absolute-positioning-inside-relative-positioning/,http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-不同/,http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/ – sandeep 2011-06-11 05:16:46