﻿
/*!
 * @名稱：base.css
 * @功能：1、重設浏覽器默認樣式
 *       2、設置通用原子類
 */
/* 防止用戶自定義背景顔色對網頁的影響，添加讓用戶可以自定義字體 */
*{
    font-family: 'Microsoft YaHei';
}
html {
    background:white;
    color:black;
}
/* 內外邊距通常讓各個浏覽器樣式的表現位置不同 */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
    margin:0;
    padding:0;
}
/* 要注意表單元素並不繼承父級 font 的問題 */
body,button,input,select,textarea {
    font-size: 14px;
}
/*input,select,textarea {
    font-size:100%;
}*/
/* 去掉 table cell 的邊距並讓其邊重合 */
table {
    border-collapse:collapse;
    border-spacing:0;
}
/* ie bug：th 不繼承 text-align */
th {
    text-align:inherit;
}
/* 去除默認邊框 */
fieldset,img {
    border:none;
}
/* ie6 7 8(q) bug 顯示爲行內表現 */
iframe {
    display:block;
}
/* 去掉 firefox 下此元素的邊框 */
abbr,acronym {
    border:none;
    font-variant:normal;
}
/* 一致的 del 樣式 */
del {
    text-decoration:line-through;
}
address,caption,cite,code,dfn,em,th,var {
    font-style:normal;
    font-weight:500;
}
/* 去掉列表前的標識，li 會繼承 */
ol,ul {
    list-style:none;
}
/* 對齊是排版最重要的因素，別讓什麽都居中 */
caption,th {
    text-align:left;
}
/* 來自yahoo，讓標題都自定義，適應多個系統應用 */
h1,h2,h3,h4,h5,h6 {
    font-size:100%;
    font-weight:500;
}

/* 統一上標和下標 */
sub,sup {
    font-size:75%;
    line-height:0;
    position:relative;
    vertical-align:baseline;
}
sup {
    top:-0.5em;
}
sub {
    bottom:-0.25em;
}
/* 讓鏈接在 hover 狀態下顯示下劃線 */
/*a:hover {
    text-decoration:underline;
}*/
/* 默認不顯示下劃線，保持頁面簡潔 */
ins,a {
    text-decoration:none;
}
/* 去除 ie6 & ie7 焦點點狀線 */
a:focus,*:focus {
    outline:none;
}

a {
    color: #1a1a1a;
}

img {
    /*max-width: 100%;*/
    border: 0px;
    vertical-align: top;
    border: none;
}

input{
    border: none;
    appearance: none;
    -moz-appearance: none;
    outline: none; /** input標簽聚焦不出現默認邊框: **/
    -webkit-appearance: none;/** 用于IOS下移除原生樣式 **/
}

button {
    border: 0;
    background-color: none;
    outline: none;
    -webkit-appearance: none;/** 用于IOS下移除原生樣式 **/
}

select {
    border: none;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    /*在選擇框的最右側中間顯示小箭頭圖片*/
    background: url("../image/arrow1.png") no-repeat scroll right center transparent;
    padding-right: 14px;
}


/* 清除浮動 */
.clearfix:before,.clearfix:after {
    content:"";
    display:table;
}
.clearfix:after {
    clear:both;
    overflow:hidden;
}
.clearfix {
    zoom:1; /* for ie6 & ie7 */
}
.clear {
    clear:both;
    display:block;
    font-size:0;
    height:0;
    line-height:0;
    overflow:hidden;
}
/* 設置顯示和隱藏，通常用來與 js 配合 */
.hide {
    display:none;
}
.block {
    display:block;
}
/* 設置浮動，減少浮動帶來的 bug */
.fl,.fr {
    display:inline;
}
.fl {
    float:left;
}
.fr {
    float:right;
}