2016年11月8日

移动WEB—如何解决当header和footer的fixed布局的方法

摘要: 1、添加占位元素,缺点:增加了不必要的多余元素,影响语义性 html代码 scss(sass)代码 2、使用伪类 阅读全文

posted @ 2016-11-08 15:51 放羊的星星bky 阅读(1757) 评论(0) 推荐(0)

移动WEB——如何设置header和footer之间的container的高度

摘要: 1 // zepto.js 2 // 设置中间模块高度 3 var _Height=$(window).height()-$('.header').height()-$('.footer').height(); 4 $('.container').height(_Height); 阅读全文

posted @ 2016-11-08 15:31 放羊的星星bky 阅读(1138) 评论(0) 推荐(0)

移动web——如何将滚动条隐藏

摘要: 1 .wrap{ 2 width: auto; 3 height: 10rem; 4 overflow-y: auto; 5 } 6 7 .wrap::-webkit-scrollbar{ 8 display: none; 9 } 阅读全文

posted @ 2016-11-08 14:59 放羊的星星bky 阅读(4996) 评论(0) 推荐(0)

导航