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

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

如何用CSS進行網頁布局

江老實 Web前端工程師
難度初級
時長22分
學習人數
綜合評分9.60
1991人評價 查看評價
9.8 內容實用
9.6 簡潔易懂
9.4 邏輯清晰
  • 浮動(float)和絕對定位(position:abdsolute):讓元素脫離文檔流。
    查看全部
    0 采集 收起 來源:評測題目

    2016-05-08

  • 三列布局,兩邊固定寬度,中間自適應
    查看全部
    0 采集 收起 來源:三列布局

    2016-05-08

  • main沒有設置高度,而他的里面元素又有浮動,所以main是一直往下拓展,所以footer會在他下面,為了顯示出footer的顏色,需要清除他的浮動,cler:both
    查看全部
    0 采集 收起 來源:實踐題

    2016-05-07

  • 清除浮動兩種方法:1. clear:both; 2. overflow:hidden.
    查看全部
    0 采集 收起 來源:實踐題

    2016-05-07

  • bjq
    查看全部
    0 采集 收起 來源:內容簡介

    2016-05-06

  • 三列布局中間自適應 左右絕對定位,中間設置左右margin,分別為左右的寬度,則可以自適應
    查看全部
    0 采集 收起 來源:編程練習

    2016-05-06

  • 一列布局:設置<div class="main">; body清零{margin:0;padding:0};. main設置寬 ,高,背景色,垂直居中,{width:800px;height:300px;background:#ccc;margin:0 auto;} ?div class=top/foot, 設置.top{height:100px;background:blue}, 設置.foot{width:800px;height:100px;background:#900;merging:o auto;}
    查看全部
    0 采集 收起 來源:一列布局

    2018-03-22

  • 右側哪兩個 css 設置,可以讓元素脫離文檔流() A浮動(float)和 絕對定位(position:absolute)
    查看全部
    0 采集 收起 來源:評測題目

    2016-05-04

  • 多列布局,如果各有寬度,可以用float屬性,footer要clear:both 如果有一邊無寬度自適應,float會出錯 有寬度的要使用position:absolute; 父元素框架使用position: relative; 自適應寬度的要使用margin-left:200px 可以順利布局
    查看全部
    0 采集 收起 來源:編程挑戰

    2016-05-04

  • <!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; font-size:30px; color:#fff} .top{height:100px;background:#ccc;} .main{position:relative;} .left{position:absolute;left:0;top:0;width:200px;height:500px;background:blue;} .right{margin-left:200px;height:500px;background:#9c9;} .foot{height:50px;background:#F63;} </style> </head> <body> <div class="top">top</div> <div class="main"> <div class="right">right</div> <div class="left">left</div> </div> <div class="foot">foot</div> </body> </html>
    查看全部
    0 采集 收起 來源:編程挑戰

    2018-03-22

  • <html><br> <head><br> <title>布局</title><br> <style type="text/css"><br> body{margin:0; padding: 0}<br> .top{<br> width: 800px;<br> height: 100px;<br> background: #645;<br> margin:0 auto;<br> }<br> <br> <br> .main{<br> width: 800px;<br> height: 300px;<br> background: #ccc;<br> margin: 0 auto;<br> }<br> <br> .bottom{<br> width: 800px;<br> height: 100px;<br> background: #973;<br> margin:0 auto;<br> }<br> <br> <br> </style><br> </head><br> <body><br> <div class="top"> </div><br> <div class="main"> </div><br> <div class="bottom"> </div><br> </body><br> </html>
    查看全部
    0 采集 收起 來源:一列布局

    2018-03-22

  • <style type="text/css"> body{ margin:0; padding:0; font-size:30px; font-weight:bold} div{ line-height:50px} .left{ width:200px; height:600px; background:#ccc; position:absolute; left:0; top:0} .main{ height:600px; margin:0 10px 0 10px; background:#9CF} .right{ height:600px; width:300px; position:absolute; top:0; right:0; background:#FCC;} </style> /*使用absolute絕對定位*/
    查看全部
    0 采集 收起 來源:編程練習

    2018-03-22

  • .清除浮動, clear:both
    查看全部
    0 采集 收起 來源:實踐題

    2016-05-03

  • position絕對定位 三欄布局 中間(margin)
    查看全部
    0 采集 收起 來源:編程練習

    2016-05-03

  • 混合布局
    查看全部
    0 采集 收起 來源:混合布局

    2016-05-03

舉報

0/150
提交
取消
課程須知
1.你需要掌握html+css樣式基礎知識 2.有一定的前端實際開發經驗
老師告訴你能學到什么?
1.掌握網頁布局的相關知識 2.能對不同的網頁進行布局結構劃分 3.掌握固定寬度和自適應寬度的實現方法

微信掃碼,參與3人拼團

微信客服

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

幫助反饋 APP下載

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

公眾號

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

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!