京东H5首页最上面的横条
body {
width: 100%;
min-width: 320px;
max-width: 640px;
/* body居中 */
margin: 0 auto;
/* 移动端字体14px */
font-size:14px;
/* 设置字体类型 */
font-family: -apple-system, Helvetica, sans-serif;
/* 设置行高 */
line-height: 1.5;
}
.app {
}
.app ul li {
height: 45px;
background-color: #333333;
float: left;
list-style-type: none;
}
/* 去掉ul的内外边距 */
.app ul {
margin: 0;
padding: 0;
}
/* 子元素选择器 设置宽度 */
.app ul li:nth-child(1) {
width: 8%;
}
.app ul li:nth-child(2) {
width: 10%;
}
.app ul li:nth-child(3) {
width: 57%;
}
.app ul li:nth-child(4) {
background-color: #F63516;
width: 25%;
}