*{ margin: 0; height: 0; font-family: sans-serif,Verdana ,Microsoft JhengHei; } .hb{ display: none; position: absolute; height: 3px; width: 28px; background-color: #000; top: 30px; right:30px; bottom: 0; box-shadow: 0px 10px 0px #000,0px -10px 0px #000; cursor: pointer; } .hbdiv{ width: 100%; height: 30px; background-color: #fff; display: none; } #menu_control{ opacity: 0; position: absolute; top: -100000; } @media screen and (max-width: 768px){ .logo{ width: 160px; height: 40px; top:10px; z-index: 200; } .hb{ display: block; z-index: 100; box-shadow: 0px 10px 0px #000 ,0px -10px 0px #000; cursor: pointer; } .hbdiv{ display: block; height: 61px; background-color: #fff; z-index: 100; } #menu_control:checked ~ .top{ top:55px; transition: .5s; } .all{ width: 100%; } .top{ height: 25%; background-color: #fff; width:100%; position: fixed; top:-30%; left: 0; z-index: 100; } .top ul{ display: block; width: 35%; list-style: none; text-align: center; margin: auto; } .top ul li{ width: 100px; margin-top: 10px; margin-bottom: 50px; line-height: 100px; } .top a{ color: #222; font-size: 16px; } .top a:hover{ border-bottom: 1px solid #222; } .banner img{ width: 250%; height: 110vh; filter:brightness(.7); display: block; position: absolute; top: 60px; left: 0; text-align: center; opacity: 0; } .banner{ width: 100%; overflow: hidden; position: relative; height: 100vh; background-image: url('../img/20.jpg'); background-size: cover; background-position: center; } .banner span{ color: rgba(252,236,210,1); position: absolute; top: 400px; left: 10%; } .banner h1{ font-size: 48px; } .banner p{ font-size: 18px; width: 200px; } .nowshop{ position: absolute; top: 650px; left: 10%; width: 130px; height: 50px; color: #fff; line-height: 50px; text-align: center; border: #fff solid 1px; background-color: transparent; } .content{ position: relative; height: 500px; background-color: rgba(252,236,210,1); margin-top: -1px; } .nowshop2{ position: absolute; top: 350px; left: 10%; width: 130px; height: 50px; color: #fff; line-height: 50px; text-align: center; border: #fff solid 1px; background-color: transparent; } .content h3{ position: absolute; top: 250px; left: 10%; padding:0; font-size: 48px; color: #fff; } .content p{ font-size: 20px; padding-left: 0; position: absolute; top: 230px; left: 10%; display: none; } .content img{ width: 100%; height: auto; float: none; margin:0px; margin-right: 0px; margin-top: 0px; filter:brightness(.4); } .hot{ background-image: url(../img/18bg.jpg); background-position: center center; background-size: cover; width: 100%; height: 500px; position: relative; margin-top: -50px; } .nowshop3{ position: absolute; top: 400px; right: 30%; width: 130px; height: 50px; color: #fff; line-height: 50px; text-align: center; border: #fff solid 1px; background-color: transparent; } .hot h1{ padding-top: 70px; color: rgba(252,236,210,1); font-size: 48px; text-align: center; } .hot h1 p{ font-size: 16px; width: 250px; margin: auto; } .hot img{ float: left; width: 0; margin: 0; margin-left: 150px; height: 0; display: none; } .contact{ width: 100%; height: 200px; background-color: #222; color: #fff; } .contact div{ padding-top: 30px; margin-left: 30px; font-size: 16px; } .contact footer{ text-align: center; line-height: 250px; } .about{ height: 500px; width: 100%; background-color: #eee; } .about h1{ padding-top: 120px; margin-bottom: 80px; font-size: 28px; } }