移动端页面布局-以 携程为例
效果图分析
效果图详解:
技术选型:rem+flexible.js+less
1.技术详解重置样式:引入<link rel="stylesheet" href="./css/base.css"> 重置样式,其中最重要的是html,body{ height: 100%; } 为了下面的flex布局
/* =====================reset================= */ body,h1,h2,h3,h4,h5,h6,a,p,img,ul,li,ol,dl,dt,dd,figcaption,figure,input{ padding: 0; } img{ display: block; border: none; } input{ outline: none; } ul,ol{ list-style: none; } body{ font-size: 12px; font-family: "微软雅黑"; color: #333333; } a{ text-decoration: none; color: #999; } header,footer,nav,aside,section,article,figure,figcaption