goTOP
December 14, 2013

CSS 初始設定值+footer一直在下方

| |
網頁語言 » CSS | 閱覽(6747) | Posted by apao at 08:38
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;
}


Facebook twitter LINEk
文章来自: 本站原創
1 Comment(s)
jordan 女鞋 Homepage
2014/08/20 15:41
謝謝分享~
回覆內容 (^_^)
分頁: 1/1 第一頁 1 最後頁
我要發表評論
暱稱
密碼 [ 訪客無需密碼 ]
電郵
網址
開啟HTML 開啟UBB 開啟表情 隱藏 記住我