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

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

如何用CSS進行網頁布局

江老實 Web前端工程師
難度初級
時長22分
學習人數
綜合評分9.60
1991人評價 查看評價
9.8 內容實用
9.6 簡潔易懂
9.4 邏輯清晰
2倍速度 酸爽啊 哈哈哈哈
@小丑tear如果要可長寬變化的話就要用padding設置
好像使用text-align: center;也可以是其居中的吧
好好好教程
PZL
不僅看了一個沒用的視頻,還發現這老師喜歡啊啊啊
老師說話好親切好溫油~
挺好挺好的
其實看了大家的評論,我想說可以直接把第十一行的width改小不久好了...
.top{height:50px;background:#ccc;}

.main{width:100%;height:300px;background:red;}

.right{height:300px;background:#9c9;margin-left:210px;}

.left{width:200px;height:300px;background:blue;position:absolute;top:50px;}

.foot{height:30px;background:#f63;}
.top{height:100px;background:#ccc}

.main{width:100%;height:500px;background:red;}

.left{width:200px;height:500px;background:blue;float:left;}

.right{height:500px;background:#9C9;position:absolute;left:210px;right:0px;}

.foot{height:50px;background:#F63;
body{ margin:0; padding:0; font-size:20px; color:#fff}
.top{height:60px;background:#000;}
.main{background:#f0f;}
.right{height:600px;background:#0ff;margin:0 210px;width:100%;}
.left{width:200px;height:600px;position:absolute;background:#00f;margin:-600px 0;}
.foot{height:30px;background:#f0f;}
科幻大片來了
.main{width:100%;height:500px;background-color:red;}
.left{ width:200px;height:500px;float:left;background-color:blue;position:absolute;}
.right{width:100%;height:500px;float:right;margin-left:210px;background-color:green;position:absolute;}
.foot{width:100%;height:100px;background-color:orange;}
這課不錯~
為啥在瀏覽器里看不了效果。- -。
課程須知
1.你需要掌握html+css樣式基礎知識 2.有一定的前端實際開發經驗
老師告訴你能學到什么?
1.掌握網頁布局的相關知識 2.能對不同的網頁進行布局結構劃分 3.掌握固定寬度和自適應寬度的實現方法

微信掃碼,參與3人拼團

微信客服

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

幫助反饋 APP下載

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

公眾號

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

友情提示:

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

本次提問將花費2個積分

你的積分不足,無法發表

為什么扣積分?

本次提問將花費2個積分

繼續發表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消