日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

html5外置样式表,HTML5移动端通用css详解

發布時間:2023/12/10 HTML 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html5外置样式表,HTML5移动端通用css详解 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

HTML5移動端通用css

下面是common.css內容

/*css初始化*/

/*清除內外邊距*/

body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,img{

margin: 0;

padding: 0;

border: medium none;

}

h1,h2,h3,h4,h5,h6{

font-size: 100%;

}

*{

box-sizing:border-box;

}

em{

font-style: normal;

}

/*重置列表元素*/

ul,li{

list-style: none;

}

/*重置超鏈接元素*/

a{

text-decoration: none;

color: #333333;

}

a:hover{

text-decoration: underline;

color: #f40;

}

/*重置圖片元素*/

img{

border: 0px;

vertical-align:middle;

}

/*重置表格元素*/

table{

border-collapse: collapse;

border-spacing: 0;

}

html,body{

font-size:11px;

font-family:Helvetica;

height: 100%;

color: #333;

}

@media screen and (max-width:320px){html,body {font-size:11px}}

@media screen and (min-width:321px) and (max-width:375px){html,body {font-size:12px}}

@media screen and (min-width:376px) and (max-width:414px){html,body {font-size:13px}}

@media screen and (min-width:415px) and (max-width:639px){html,body{font-size:15px}}

@media screen and (min-width:640px) and (max-width:719px){html,body{font-size:20px}}

@media screen and (min-width:720px) and (max-width:749px){html,body{font-size:22.5px}}

@media screen and (min-width:750px) and (max-width:799px){html,body{font-size:23.5px}}

@media screen and (min-width:800px){html,body{font-size:25px}}

.icon{

height: 1.5rem;

vertical-align: middle;

}

/*頭部*/

.l_header {

position: relative;

height: 48px;

background: rgba(0,0,0,.1);

color: #fff;

text-align: center;

line-height: 48px;

font-size: 1.3rem;

background-color: #48C23D;

/* background: -webkit-linear-gradient(left,#5191FF, #3CA8FE,#29C1FE,#38BAFE); */

}

.l_header a img {

width: 30px;

position: absolute;

top: 9px;

left: 10px;

}

/** 無數據 */

.no-result{

display:none;

padding-top: 30px;

text-align: center;

font-size: 14px;

}

.no-result img{

width: 273px;

height: 56px;

margin-bottom: 5px;

}

.no-result text{

width: 100%;

color: #666;

float: left;

}

總結

以上是生活随笔為你收集整理的html5外置样式表,HTML5移动端通用css详解的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。