html,body{ width: 100%; height: 100%; } .container{ position: relative; } .container,.bg{ width: 100%; height: 100%; overflow: hidden; position: absolute; } .bg img{ height: 100%; } .bg .bg-r{ float: right; } .con{ width: 700px; min-height: 700px; height: 100%; position: relative; margin: 0 auto; position: relative; text-align: center; } .c-c{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; } .btn{ display: none; padding: 12px 46px; min-width: 200px; border: 1px solid #32B2A7; border-radius: 40px; font-size: 14px; background: #32B2A7; color: #fff; text-align: center; margin-top: 30px;; } .wrapper{ width: 300px; height: 300px; margin: 0 auto; position: relative; } .bg-path{ position: absolute; top: 4px; left: 4px; z-index: -1; color: #EFF2F2; font-size: 310px; } .icon{ position: absolute; top: 0; left: 0; padding: 10px; width: 140px; height: 140px; border-radius: 17.54%; background-color: #fff; display: inline-block; } .icon img{ max-width: 100%; width: 120px; height: 120px; border-radius: 17.54%; } .m-icon{ display: none; } .qrcode{ position: absolute; bottom: -10px; right: -10px; width: 140px; height: 140px; border: 20px solid transparent; border-radius: 20px; transition: all .25s; background-color: #EFF2F2; } .qrcode img{ width: 100%; height: 100%; } .qrcode:hover{ transform: scale(1.6); box-shadow: 0 1px 5px rgba(0,0,0,.3); } .name{ position: relative; margin: 40px auto 10px; width: 290px; color: #505556; text-align: left; font-weight: 400; font-size: 28px; } .scan-tips{ margin: 0 auto; width: 290px; text-align: left; white-space: nowrap; line-height: 22px; color: #A9B1B3; font-size: 14px; margin-bottom: 40px; } .icon-cls{ position: absolute; right: 100%; top: 2px; margin-right: 10px; font-size: 26px; } .release-info{ border-top: 1px solid #DAE2E3; max-width: 500px; position: relative; margin: 0 auto; padding-top: 30px; } .release-info p{ color: #A9B1B3; font-size: 14px; } .datePublished{ color: #202020; } @media screen and (max-width: 768px) { .bg img{ height: 40%; } .con{ width: 100%; } .c-c{ width: 90%; } .wrapper{ display: none; } .m-icon{ width: 100%; display: block; text-align: center; } .icon{ position: static; } .name{ width: 100%; text-align: center; margin-bottom: 30px; } .icon-cls{ position: static; margin: 0; } .scan-tips{ display: none; } .release-info{ width: 100%; } .btn{ display: inline-block; } } @media screen and (max-width: 330px) { .c-c{ top: 35%; } }