相关代码
.div {
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
background: white;
}
.div1 {
width: 100%;
position: relative;
left:0;
top:0;
font-size: 0.24rem;
height: 0.4rem;
background-color: #565f75;
overflow: hidden;
div2是个svg图,高度设定为屏幕的高度的三分之一;
用chrome的f12调试吧,看那段空白是什么