/* 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; } /* 滚动区域 */ .scroll-content{ height: calc(100vh - 2.9rem); background-color: #f5f5f5; overflow-y: scroll; overflow-x: hidden; } .scroll-content::-webkit-scrollbar{ display: none; } .scroll-content .scroll-movie{ padding: 12px 15px; background-color: #fff; width: 100%; box-sizing: border-box; overflow-x: scroll; overflow-y: hidden; } .scroll-content .scroll-movie::-webkit-scrollbar{ display: none; } .scroll-content .scroll-movie ul{ /* display:flex; padding:0 15px; */ white-space: nowrap; font-size: 0; } .scroll-content .movie-img{ position: relative; width: 85px; height: 115px; margin-bottom: 6px; } .scroll-content .scroll-movie .scroll-item{ display: inline-block; margin-right: 15px; } .scroll-content .scroll-movie .scroll-item:last-child{ /* margin-right: 15px; */ } .scroll-content .scroll-movie .movie-img img{ width: 85px; height: 115px; } .scroll-content .movie-rate{ font-size:11px; position: absolute; left: 0; bottom: 0; width: 100%; height: 35px; background: linear-gradient(180deg,rgba(77,77,77,0),#000); color: #faaf00; font-size: 11px; font-weight: 600; line-height: 50px; overflow: hidden; text-align: center; } .scroll-content .movie-title{ font-size:13px; color: #222; } /* 列表区域 */ .list-movie{ background-color: #fff; margin-top: 15px; } .list-movie .movie-list-item{ padding:12px 0 12px 14px; display: flex; } .list-movie .movie-img{ height: 90px; width: 64px; } .list-movie .movie-img img{ height: 90px; width: 64px; } .list-movie .movie-info{ /* flex:1; 占满剩余空间 他是一个缩写 flex-grow:1; flex-shrink:0; flex-basis:0; (flex-basis表示初始宽度) */ flex:1; display: flex; justify-content: space-between; margin-left: 10px; border-bottom: 1px solid #e6e6e6; padding-bottom: 10px; } .list-movie .movie-text h2{ font-size: 17px; color: #333; font-weight: 700; margin-bottom: 7px; } .list-movie .movie-text p{ font-size: 13px; color: #666; margin-top: 3px; } .list-movie .movie-btn{ display: flex; align-items: center; width: 100px; justify-content: center; } .list-movie .movie-btn .btn{ font-size: 12px; font-weight: 500; width: 54px; height: 28px; background-color: #F03D37; box-shadow: 0 2px 2px 0 rgba(240, 61, 55, 0.15); font-size: 12px; font-weight: 500; color: #fff; border-radius: 14px; text-align: center; line-height: 28px; } /* 底部导航栏 */ 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; }