每個頁面通用的CSS:global.css 對某些標籤進行初始化樣式設定 加些特定的margin值 等
阿新 • • 發佈:2019-01-08
每個頁面通用的CSS:global.css.txt
- @charset "utf-8";
- /* CSS Document */
- /* ========= reset ========= */
- body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,p{
- border: 0;margin: 0;padding: 0;font-size: 100%;font-weight: normal;font-style: normal;text-decoration: none;
- }
-
table{border-collapse
- li {list-style:none;}
- img{border:none;}
- body{font:12px/17px'MS Pゴシック','MS PGothic','MS Gothic','Verdana',sans-serif;color:#595757;}
- .clearfix:after {
- content: ".";
- clear: both;
- height: 0;
- visibility: hidden;
- display: block;
-
} /* 這是對Firefox進行的處理,因為Firefox支援生成元素,而IE所有版本都不支援生成元素 */
- .clearfix {
- display: inline-block;
- } /* 這是對 Mac 上的IE瀏覽器進行的處理 */
- /* Hides from IE-mac /*/
- * html .clearfix {height: 1%;} /* 這是對 win 上的IE瀏覽器進行的處理 */
- .clearfix {display: block;} /* 這是對display: inline-block;進行的修改,重置為區塊元素*/
- /* End hide from IE-mac */
- /* A */
-
a{color:#00a0e9
- a:hover{color:#00a0e9;text-decoration:underline;}
- /* ========= margin ======== */
- .mt10{margin-top:10px;}
- .mt20{margin-top:20px;}
- .mb5{margin-bottom:5px;}
- .mb10{margin-bottom:10px;}
- .mb15{margin-bottom:15px;}
- .mb20{margin-bottom:20px;}
- .ml20{margin-left:20px;}
- input[type="text"]{
- height:18px;
- }
- .ac{text-align:center;}
- hr.cb{
- visibility:hidden;
- height:0;
- border:none;
- clear:both;
- font-size:0;
- line-height:0;
- overflow:hidden;
- }