星空网 > 软件开发 > 网页设计

absolute之整体布局实现

  absolute之整体布局实现

要实现如图的布局,我最先想到是将header与footer绝对定位,但是发现在移动端会出现bug,经查资料发现用absolute实现整体布局非常好,还挺简单的。

.header, .footer, .content {    position: absolute;    left: 0;    right: 0; }.header {   height: 48px;   top: 0;   z-index: 1;   /*other style*/ }.footer {   height: 52px;   bottom: 0;   z-index: 1;   /*other style*/ }.content {   top: 48px;   bottom: 53px;   overflow: auto;   /*other style*/ }

 




原标题:absolute之整体布局实现

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

如何辨别你的测评服务商是否优质?:https://www.ikjzd.com/articles/106555
净利增长近8倍,华东跨境大卖上半年爆发!:https://www.ikjzd.com/articles/106556
调查报告全面分析:2019年我国外贸企业生存现状如何?:https://www.ikjzd.com/articles/106558
2019电商旺季即将来临,你的内功练好了吗?:https://www.ikjzd.com/articles/106559
独门秘籍:充分利用站内资源获取更多Review!:https://www.ikjzd.com/articles/106560
回应美国无端指控,华为揭穿美政府“九宗罪”!:https://www.ikjzd.com/articles/106561
川藏线自驾游要怎么走才比较划算呢?:https://www.vstour.cn/a/411240.html
去日本入住酒店,东西随意用却有一个特殊“要:https://www.vstour.cn/a/411241.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流