| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- /* 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;
- }
|