課程
/前端開發
/HTML/CSS
/HTML5和CSS3扁平化風格博客
實踐了發現右邊有空白 這是設置了100%寬度 100%的寬度是包含垂直滾動條的,需要減去垂直滾動條的寬度,可以使用javascript控制,請問怎么控制呢
2016-06-08
源自:HTML5和CSS3扁平化風格博客 3-8
正在回答
body總框架里加overflow: hidden;
最外層的 圖片
.main-wrapper{
background: #444 url(../img/banner.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
我原先出現這樣的問題是因為section那里設置圖片加文字的那一塊太寬了,把頁面給撐開了
舉報
HTML5與CSS3搭建超酷扁平化風格博客
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-07-19
body總框架里加overflow: hidden;
2017-10-11
最外層的 圖片
.main-wrapper{
background: #444 url(../img/banner.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
2016-06-09
我原先出現這樣的問題是因為section那里設置圖片加文字的那一塊太寬了,把頁面給撐開了