/*===========================================通用樣式========================================*/ body,p,ul,ol,dl,dd,hr,h1,h2,h3,h4,h5,h6,figure,ul,ol,th,td,button,input,fieldset,legend,textarea,option{margin: 0;padding: 0;} table{border-collapse:collapse;} input, button {border: 0;outline: none;} i,em,strong,b{font-style:normal;font-weight:normal;} body {font-family: "微軟雅黑" !important;} a {text-decoration: none;} li {list-style: none} img {border: 0;vertical-align: top;} .clearfix{zoom:1;} .clearfix:after { /*在類名為“clearfix”的元素內最后面加入內容*/ content: "."; /*內容為“.”就是一個英文的句號而已。也可以不寫*/ display: block; /*加入的這個元素轉換為塊級元素*/ clear: both; /*清除左右兩邊浮動*/ visibility: hidden; /*可見度設為隱藏。注意它和display:none;是有區別的。仍然占據空間,只是看不到而已*/ height: 0; /*高度為0*/ font-size: 0; /*字體大小為0*/ overflow: hidden; } /*字體圖標*/ @font-face { font-family: 'iconfont'; src: url('../font/iconfont.eot'); src: url('../font/iconfont.eot?#iefix') format('embedded-opentype'), url('../font/iconfont.woff2') format('woff2'), url('../font/iconfont.woff') format('woff'), url('../font/iconfont.ttf') format('truetype'), url('../font/iconfont.svg#iconfont') format('svg'); } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .container { width: 1170px; margin: 0 auto; }