<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        內容較少時,頁面的footer始終顯示在底部,不是使用fixed。_html/css_WEB-ITnose

        來源:懂視網 責編:小采 時間:2020-11-27 16:33:38
        文檔

        內容較少時,頁面的footer始終顯示在底部,不是使用fixed。_html/css_WEB-ITnose

        內容較少時,頁面的footer始終顯示在底部,不是使用fixed。_html/css_WEB-ITnose:一、使用css,參考國外的一個解決方法: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/ How to use the CSS Sticky Footer on your website Add the following lines of CSS to your
        推薦度:
        導讀內容較少時,頁面的footer始終顯示在底部,不是使用fixed。_html/css_WEB-ITnose:一、使用css,參考國外的一個解決方法: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/ How to use the CSS Sticky Footer on your website Add the following lines of CSS to your

        一、使用css,參考國外的一個解決方法:

        http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

        How to use the CSS Sticky Footer on your website

        Add the following lines of CSS to your stylesheet. The negative value for the margin in .wrapper is the same number as the height of .footer and .push. The negative margin should always equal to the full height of the footer (including any padding or borders you may add).

        * {

        margin: 0;

        }

        html, body {

        height: 100%;

        }

        .wrapper {

        min-height: 100%;

        height: auto !important;

        height: 100%;

        margin: 0 auto -4em;

        }

        .footer, .push {

        height: 4em;

        }

        Follow this HTML structure. No content can be outside of the .wrapper and .footer div tags unless it is absolutely positioned with CSS. There should also be no content inside the .push div as it is a hidden element that "pushes" down the footer so it doesn't overlap anything.

        Your website content here.

        Copyright (c) 2008

        二、使用js,參考這個:(本人未驗證過,看代碼應該可行)

        http://jingyan.baidu.com/article/2fb0ba4054805900f2ec5f9d.html

         //footer吸底效果 var _ch = $("#content").height();//這個就是你中間內容div的高度 var _wh = $(window).height();//整個窗口的高度 //console.log("window's height",_wh,"content's height",_ch,"_wh - _ch:",_wh - _ch); if(_wh - _ch > 192){ $("#content").css("min-height",(_wh-192)+"px"); } //希望這段代碼對你有用!

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        內容較少時,頁面的footer始終顯示在底部,不是使用fixed。_html/css_WEB-ITnose

        內容較少時,頁面的footer始終顯示在底部,不是使用fixed。_html/css_WEB-ITnose:一、使用css,參考國外的一個解決方法: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/ How to use the CSS Sticky Footer on your website Add the following lines of CSS to your
        推薦度:
        標簽: 內容 底部 在底部
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 婷婷亚洲综合五月天小说在线| 成年女人18级毛片毛片免费| 亚洲AV无码一区二区三区牲色| 亚洲va在线va天堂va888www| 亚洲第一页日韩专区| 永久免费AV无码国产网站| 久别的草原电视剧免费观看| 亚洲av成人无码网站…| 中国亚洲呦女专区| 337p日本欧洲亚洲大胆色噜噜| 亚洲日本va在线视频观看| 又爽又高潮的BB视频免费看| 亚洲性线免费观看视频成熟| 久久午夜无码免费| 四虎AV永久在线精品免费观看| 国产成人yy免费视频| 精品一区二区三区无码免费视频| 最新久久免费视频| 好吊色永久免费视频大全| 粉色视频免费入口| 日韩精品亚洲专区在线影视| 亚洲色大网站WWW永久网站| 亚洲人成网站色在线观看| 亚洲另类视频在线观看| 亚洲国产精品综合久久久| 666精品国产精品亚洲| 亚洲欧洲在线观看| 亚洲国产综合精品中文第一区| 亚洲国产精品成人久久| 亚洲AV无码一区东京热| 亚洲av永久无码精品网站| 亚洲国产精品特色大片观看完整版| 亚洲一区二区三区在线播放| 亚洲日韩涩涩成人午夜私人影院| 亚洲?V乱码久久精品蜜桃 | 成人免费淫片在线费观看| 免费观看黄网站在线播放| 免费看国产成年无码AV片| 免费毛片在线视频| 亚洲精品第一国产综合精品99| 相泽亚洲一区中文字幕|