*{ 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: absolute; 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/21.jpg'); background-size: cover; background-position: center; } .banner img{ width: 0px; height: 0px; } .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; } .login{ margin-top: 40px; width: 100%; height: 180px; } .login a{ width: 110px; margin-left: 0px; height: 50px; display: inline-block; color: #555; padding-bottom:20px; } .login a:hover{ color: #0080FF; transition: .5s; } .login i{ margin: auto; margin-bottom: 20px; } .list{ margin: auto; margin-top: 100px; } .search{ width: calc(100% - 20px); float: left; margin-top: -80px; margin-right: 0; margin-left: 20px; margin-bottom: 50px; } .order-table{ margin: 0; margin-left: 0; } .order-table tr td{ width: 300px; height:auto; display: flex; flex-direction: column; margin-bottom: 10px; color: #222; } .order-table tr td:nth-child(1){ width: 300px; height: 300px; display: flex; flex-direction: column; overflow: hidden; margin-top: 20px; } .order-table tr td:nth-child(2){ font-size: 20px; font-weight: bold; } .order-table tr td:nth-child(3){ font-size: 18px; } .order-table img{ width: 100%; height: 300px; filter:brightness(.8); } .order-table img:hover{ transform:scale(1.1,1.1); transition: .5s; filter:brightness(1.2); } .prodact-button{ position: absolute; top: -200px; left: 0px; } }