内容出现在固定标题后面

ade*_*nde 5 html position header fixed

我修改了网站的标题部分,但页面的第一个div出现在标题后面; 而不是从标题的末尾开始.

Zol*_*oth 10

当您应用position: fixedposition: absolute从文档流中删除元素时,所以将其视为不存在之后的元素.这就是你div跳起来的原因.修复它应用margin-top等于你的标题高度 - http://jsfiddle.net/2xjES/