移動端重設瀏覽器預設樣式代碼

來源:互聯網
上載者:User

標籤:

字型單位:rem

@charset "utf-8";/*    *create by chengkun 19/9/2015.    *version 1.0.    *Reset the browser default style.*//* 設定盒模型樣式 */* {    box-sizing: border-box;}article, aside, blockquote, body, button, code, dd, details, div, dl, dt, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, input, legend, li, menu, nav, ol, p, pre, section, td, textarea, th, ul {    margin: 0;    padding: 0;}article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, summary {    display: block;}h1, h2, h3, h4, h5, h6 {    font-weight: normal;}/* 清除列表預設樣式 */ul, ol, li {    list-style: none;}em, i {    font-style: normal;}html, body {    color: #383838;    background: #fff;    min-width: 320px;    max-width: 640px;    margin: 0 auto;}body, input, textarea, select, button {    font-family: "微軟雅黑",Tahoma,sans-serif;    -webkit-appearance: none;    border-radius: 0;}a {    color: #333;    text-decoration: none;    outline: none;}a, button, input, p, label, div {    -webkit-tap-highlight-color: rgba(255,0,0,0);}img {    border: 0;    width: 100%;    vertical-align: top;}input, textarea {    border: none;}input:focus, textarea:focus {    outline: none;}textarea {    resize: none;}button {    border: none;    background: none;}address {    font-style: normal;}/* 清除浮動 */.clearfix:after,.clearfix:before{    content:"";    display:table;}.clearfix:after{    clear:both;    overflow:hidden;}.clearfix{    zoom:1;}/*浮動*/.fl {    float: left;}.fr {    float: right;}#wrap {    min-width: 320px;    max-width: 640px;}.disabled {    background: #ccc;    color: #fff;}/*遮罩層*/.thiv{    display: none;    position: fixed;    width: 100%;    height: 100%;    background: rgba(0,0,0,.6);    z-index: 100;}/* 公用提示框樣式 */.tips {    position: fixed;    top: 0;    right: 0;    bottom: 0;    left: 0;    z-index: 9999;    -webkit-box-pack: center;    -ms-flex-pack: center;    -webkit-justify-content: center;    justify-content: center;    -webkit-box-align: center;    -ms-flex-align: center;    -webkit-align-items: center;    align-items: center;}.tipscon {    -webkit-transition: all 0.3s ease-in-out;    transition: all 0.3s ease-in-out;    padding: 15px;    background-color: rgba(0, 0, 0, 0.8);    border-radius: 5px;    margin: 0 20px;    overflow: hidden;    opacity: 1;    color: #FFF;    font-size: 1.25rem;    letter-spacing: 2px;}/* 適配文字大小,使得不同螢幕大小手機上的文字展示效果一致 */html{    font-size: 12px;/* 根項目樣式 */    line-height: 18px;}@media (min-width:320px) {    html {        font-size: 85%;    }} @media (min-width:360px) {    html {        font-size: 83%;    }} @media (min-width:375px) {    html {        font-size: 88%;    }}@media (min-width:414px) {    html {        font-size: 93%;    }}@media (min-width:480px) {    html {        font-size: 98%;    }}@media (min-width:640px) {    html {        font-size: 105%;    }}@media (min-width:768px) {    html {        font-size: 110%;    }}@media (min-width:1080px) {    html {        font-size: 150%;    }}

 

移動端重設瀏覽器預設樣式代碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.