標題:CSS 初始設定值+footer一直在下方 出處:A.PAO designSTUDIO BLOG 時間:Sat, 14 Dec 2013 08:38:18 +0000 作者:apao 地址:https://blog.apao.idv.tw/post/1014/ 內容: html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, img, ins, kbd, q, s, samp, small, strike, strong, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baselinebaseline; background: transparent; } /*以下為確保footer一直在下方的做法 建議可使用 footerFixed.js 比較方便--------*/ body , html { height: 100%; } #container { width: 100%; position: relative; height: auto !important; height: 100%; min-height: 100%; } #contents { padding-bottom: 100px; } #footer { position: absolute; bottom: 0; width: 100%; height: 100px; } Generated by Bo-blog 2.1.1 Release