亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

即使沒有內容,如何強制DIV塊擴展到頁面底部?

即使沒有內容,如何強制DIV塊擴展到頁面底部?

BIG陽 2019-12-12 13:11:05
在下面顯示的標記中,我試圖使內容div一直延伸到頁面底部,但是只有在有要顯示的內容時才拉伸。我要這樣做的原因是,即使沒有任何內容要顯示,垂直邊框仍會在頁面下方顯示。這是我的HTML:<body>    <form id="form1">    <div id="header">        <a title="Home" href="index.html" />    </div>    <div id="menuwrapper">        <div id="menu">        </div>    </div>    <div id="content">    </div>而我的CSS:body {    font-family: Trebuchet MS, Verdana, MS Sans Serif;    font-size:0.9em;    margin:0;    padding:0;}div#header {    width: 100%;    height: 100px;}#header a {    background-position: 100px 30px;    background: transparent url(site-style-images/sitelogo.jpg) no-repeat fixed 100px 30px;    height: 80px;    display: block;}#header, #menuwrapper {    background-repeat: repeat;    background-image: url(site-style-images/darkblue_background_color.jpg);}#menu #menuwrapper {    height:25px;}div#menuwrapper {    width:100%}#menu, #content {    width:1024px;    margin: 0 auto;}div#menu {    height: 25px;    background-color:#50657a;}
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 1260 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號