/* css reset 重置样式 */ * { margin: 0; padding: 0; } li { list-style: none; } h1 { font-weight: normal; } /* 头部区域 */ header { height: 1rem; background-color: #e54847; position: relative; } header h1 { text-align: center; font-size: 0.35rem; line-height: 1rem; color: #fff; } header .menu { position: absolute; height: 1rem; line-height: 1rem; right: 20px; top: 0; color: #fff; font-size: 0.35rem; } /* 导航栏区域 */ nav { height: .9rem; border-bottom: 1px solid #e6e6e6; display: flex; justify-content: space-between; font-size: 0.3rem; line-height: .9rem; padding: 0 20px; } nav .address { position: relative; } nav .address .city { font-size: 0.25rem; color: #666; } nav .address::after { content: ""; display: block; width: 0; height: 0; border-top: .1rem solid #ddd; border-right: .1rem solid transparent; border-left: .1rem solid transparent; /* border-bottom:.1rem solid transparent; */ position: absolute; top: 50%; right: -15px; transform: translateY(-50%); } nav .nav ul { display: flex; } nav .nav { position: relative; } nav .nav .under-line { width: 6vw; height: 4px; background-color: #e54847; position: absolute; bottom: 4px; border-radius: 2px; transition: all 0.1s linear; } nav .nav li { font-size: 0.3rem; width: 10vw; text-align: center; color: #666; font-weight: 700; margin: 0 1.3vw; } nav .nav.wait .under-line{ left: 28.5vw; } nav .nav.cinema .under-line{ left:15.5vw; } nav .nav.hot .under-line{ left: 3vw; } nav .wait [data-nav="wait"]{ color: #111; } nav .cinema [data-nav="cinema"]{ color: #111; } nav .hot [data-nav="hot"]{ color: #111; } nav .search i.iconfont { color: #e54847; font-weight: 700; font-size: 0.3rem; } /* 底部导航栏 */ footer{ background-color: #fff; height: 1rem; position: fixed; bottom: 0; left: 0; width: 100%; border-top: 1px solid #e6e6e6; } footer ul{ display: flex; justify-content: space-around; } footer li{ display: flex; flex-direction: column; width:0; flex-grow: 1; align-items: center; height: 1rem; justify-content: center; } footer li span{ font-size: 0.2rem; } footer li.active{ color: #e54847; }