課程
/前端開發(fā)
/HTML/CSS
/CSS深入理解之overflow
老師能不能把這節(jié)課的overflow妙用的完整代碼貼出來?
2015-08-09
源自:CSS深入理解之overflow 4-1
正在回答
<!DOCTYPE?html> <html> <head> <meta?charset="UTF-8"> <title>Document</title> <style?type="text/css"> .main-body{ height:?1000px; width:?80%; margin:?0?auto; background:?#ccc; padding-left:?calc(100vw?-?100%); } .fixed-wrap{ height:?0; overflow:?hidden; text-align:?right; } .fixed-right{ position:?fixed; margin:20px?0?0?20px;? } </style> </head> <body> <div> <div> <img?src="demo_images/fixed.jpg"> </div> </div> </body> </html>
試試這個
慕少7532173
看下這個吧!
舉報
深入理解overflow相關(guān)特性及實際應(yīng)用,為你打開另外一扇學習之窗
3 回答overflow失效妙用
4 回答overflow失效妙用,無法實現(xiàn)
1 回答失效妙用overflow設(shè)置為hidden有啥意義呢?默認visible可以不大神解釋下
2 回答失效的妙用,無原代碼很難理解,有的請?zhí)峁?,先謝
1 回答絕對定位和overflow
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-02-26
試試這個
2015-12-24