ade*_*nde 5 html position header fixed
我修改了网站的标题部分,但页面的第一个div出现在标题后面; 而不是从标题的末尾开始.
Zol*_*oth 10
当您应用position: fixed或position: absolute从文档流中删除元素时,所以将其视为不存在之后的元素.这就是你div跳起来的原因.修复它应用margin-top等于你的标题高度 - http://jsfiddle.net/2xjES/
position: fixed
position: absolute
div
margin-top
归档时间:
13 年,4 月 前
查看次数:
11619 次
最近记录: