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

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

設置的div塊無法顯示

設置的div塊無法顯示

落子鳶 2016-04-24 20:32:18
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html?xmlns="http://www.w3.org/1999/xhtml"> <head> <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> <title>大慶師范學院</title> <style?type="text/css"> body{margin:0;?padding:0} #top{width:auto;?height:110px;??background:#777777;} #main{?width:1010px;?height:auto;?margin:0?auto;?background:#AAAAAA;} #left{width:750px;?height:600px;?float:left;?background:#33FF99;} #sub_u{width:750;} #sub_d{} #right{?width:260px;?height:600px;?float:right;?background:#00FF00;} #foot{ ?width:1010px; ?height:70px; ?background:#555; ?margin:0?auto; } </style> </head> <body> <body> <div?id="top"?></div> <div?id="main"> ??<div?id="left"> ???<div?id="sub_u"></div> ????<div?id="sub_d"></div> ??</div> ??<div?id="right"></div> </div>? <div?id="foot"></div>? </body> </html> 上邊為代碼,設置的ID為“foot”的塊狀元素無法顯示怎么改????
查看完整描述

3 回答

已采納
?
俠客島的含笑

TA貢獻552條經驗 獲得超285個贊


你的這個問題是foot margin:0?auto;上下外邊距為0,左右自動居中,所以他就劇終了,但是你的main 的也是居中,所以就被覆蓋了,你把margin改一下,或者用剛才那個同學的建議

查看完整回答
1 反對 回復 2016-04-25
?
我很不愉快

TA貢獻1條經驗 獲得超0個贊

#foot{

?clear:both;

?width:1010px;

?height:70px;

?background:#555;

?margin:0 auto;

}



查看完整回答
反對 回復 2016-04-26
  • 3 回答
  • 0 關注
  • 1986 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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