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

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

怎么傳人數據框沒辦法居中啊?是要用絕對定位嗎?

怎么傳人數據框沒辦法居中???是要用絕對定位嗎?

_Jack_lei 2016-04-02 21:46:15
<!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"><style type="text/css">body{margin:0; padding:0;}#top{height:30px; background:#CCC;}#mainbody{width:550px; height:300px; margin:0 auto}#soso{height:20px; width:90px; margin: o auto;}#findbody{width:75px;height:50px;margin:0 auto}?</style><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>百度一下,你就知道</title></head><body><div class="type"> <div id="top">鄭州:晴轉多云</div>? ? <div id="mainbody"> <img src="bd_logo1_31bdc765.png"alt="bd_logo1_31bdc765.png"title="百度"/></div>? ? <div id="soso">? ? <form method="post" action="save.php">? ? <input type="text" name="myName"/></form>? ? ?<input type="submit" value="提交" name="submitBtn" />? ? </div>? ? <div id="findbody"><a >設為首頁</a>? ?? ? </div></div></body></html>
查看完整描述

1 回答

已采納
?
俠客島的含笑

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


你沒設置居中啊

查看完整回答
反對 回復 2016-04-03
  • _Jack_lei
    _Jack_lei
    額,學的不好,問答框那個不是在class="soso"里嗎?對soso用css設置margin:0 auto;不是居中嗎/?
  • 俠客島的含笑
    俠客島的含笑
    margin:0 auto你寫的是字母o
  • 1 回答
  • 0 關注
  • 1447 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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