第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

哪里不對啊

#mainbody { ? ? width:100%; ? ? position:relative; ? ? margin-top:20px; } #content { top:0px; margin-left:200px; 求大神指導(dǎo)哪里不對 為什么總是出不來效果

正在回答

3 回答

沒有設(shè)置偏移量是不會移到上面去的,

#mainbody { ? ? width:100%; ? ? position:relative; ? ? margin-top:20px; }?

#content { position:absolute; top:0px; left:200px;}

或者

#mainbody { ? ? width:100%; ? ? position:relative; ? ? margin-top:20px; }?

#content { position:absolute; top:0px; margin-left:200px;}


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕粉1472432787 提問者

非常感謝!
2016-10-18 回復(fù) 有任何疑惑可以回復(fù)我~

#mainbody { ? ? width:100%; ? ? position:relative; ? ? margin-top:20px; }

#content { position:absolute; top:0px; margin-left:200px;}


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

劍影破殘甲

和你一樣 但沒有自適應(yīng)浮動
2016-10-15 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_夢里夢到醒不來的夢丶_03363152

這樣寫還是沒有自適應(yīng)浮動啊。。
2016-10-22 回復(fù) 有任何疑惑可以回復(fù)我~

position:absolute;

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
網(wǎng)頁布局基礎(chǔ)
  • 參與學習       214674    人
  • 解答問題       1833    個

讓你精通CSS中三大定位機制,徹底掌握網(wǎng)頁布局的相關(guān)知識

進入課程
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號