移動(dòng)端public.css

@charset "utf-8";

/* 禁用iPhone中Safari的字號(hào)自動(dòng)調(diào)整 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* 解決IOS默認(rèn)滑動(dòng)很卡的情況 */
    -webkit-overflow-scrolling : touch;
}
html,body{
    width: 100%;
    height: 100%;
}
/* 禁止縮放表單 */
input[type="submit"], input[type="reset"], input[type="button"], input {
    resize: none;
    border: none;
}

/* 取消鏈接高亮  */
body, div, ul, li, ol, h1, h2, h3, h4, h5, h6, input, textarea, select, p, dl, dt, dd, a, img, button, form, table, th, tr, td, tbody, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* 設(shè)置元素為塊 */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section ,a{
    display: block;
}

/* 圖片自適應(yīng) */
img {
    width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
    display: block;
    -ms-interpolation-mode: bicubic;/*為了照顧ie圖片縮放失真*/
}

/* 初始化 */
body, div, ul, li, ol, h1, h2, h3, h4, h5, h6, input, textarea, select, p, dl, dt, dd, a, img, button, form, table, th, tr, td, tbody, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    margin: 0;
    padding: 0;
}
body {
    font: 12px/1.5 'Microsoft YaHei','宋體', Tahoma, Arial, sans-serif;
    color: #333;
    background-color: #F7F7F7;
}
em, i {
    font-style: normal;
}
ul,li{
    list-style: none;
}
strong {
    font-weight: normal;
}
.clearfix:after {
    content: "";
    display: block;
    visibility: hidden;
    height: 0;
    clear: both;
}
.clearfix {
    zoom: 1;
}
a {
    text-decoration: none;
    color: #969696;
    font-family: 'Microsoft YaHei', Tahoma, Arial, sans-serif;
}
a:hover {
    text-decoration: none;
}
ul, ol {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-family: 'Microsoft YaHei';
}
img {
    border: none;
}
input{
    font-family: 'Microsoft YaHei';
}
/*單行溢出*/
.one-txt-cut{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/*多行溢出 手機(jī)端使用*/
.txt-cut{
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
}
/* 移動(dòng)端點(diǎn)擊a鏈接出現(xiàn)藍(lán)色背景問(wèn)題解決 */
a:link,a:active,a:visited,a:hover {
    background: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}
.w50{
    width: 50%;
}
.w25{
    width: 25%;
}
.w20{
    width: 20%;
}
.w33{
    width: 33.333333%;
}
.fl{
    float: left;
}
.fr{
    float: right;
}
.db{
    display: block !important;
}
.dn{
    display: none;
}
/*字體圖標(biāo)*/
@font-face {
  font-family: 'iconfont';  /* project id 350792 */
  src: url('//at.alicdn.com/t/font_350792_yk2sh4le9k.eot');
  src: url('//at.alicdn.com/t/font_350792_yk2sh4le9k.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_350792_yk2sh4le9k.woff') format('woff'),
  url('//at.alicdn.com/t/font_350792_yk2sh4le9k.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_350792_yk2sh4le9k.svg#iconfont') format('svg');
}
.iconfont{
    font-family:"iconfont" !important;
    font-size:16px;font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}
/*iphone x 媒體查詢(xún)*/
@media only screen and (width: 375px) and (height: 690px){
    body {
        background:#555555;
    }
}
textarea::-webkit-input-placeholder { /* WebKit browsers */ 
    color: #999; 
} 
textarea::-moz-placeholder { /* Mozilla Firefox 4 to 18 */ 
    color: #999; 
} 
textarea::-moz-placeholder { /* Mozilla Firefox 19+ */ 
    color: #999; 
} 
textarea::-ms-input-placeholder { /* Internet Explorer 10+ */ 
    color: #999; 
} 
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容