-
body{ margin:0; padding:0; font-size:30px; font-weight:bold} div{ text-align:center; line-height:50px} .top{ height:100px;background:#9CF} .head,.main{ width:960px;margin:0 auto;} .head{ height:100px; background:#F90} .left{ width:220px; height:600px; background:#ccc; float:left;} .right{ width:740px; height:600px;background:#FCC; float:right} .r_sub_left{ width:540px; height:600px; background:#9C3; float:left} .r_sub_right{ width:200px; height:600px; background:#9FC; float:right;} .footer{ height:50px; background:#9F9;clear:both;/*刪除浮動 }查看全部
-
絕對定位 一般伴隨著 left top right bottom 屬性查看全部
-
浮動 float 和 絕對定位 position:absolute 使得文檔脫離了文檔流查看全部
-
左右排列用到了浮動查看全部
-
清除浮動兩種方法:1. clear:both; 2. overflow:hidden.查看全部
-
margin: 0 auto;居中對齊查看全部
-
clear:left clear:right clear:both查看全部
-
margin:0 310px 0 210px 上 右 下 左查看全部
-
浮動(float)和絕對定位(position:absolute;)可以讓元素脫離文檔流查看全部
-
position:absolute float:left margin: top right bottom left查看全部
-
浮動和絕對定位可以脫離文檔流查看全部
-
自適應用百分比來表示查看全部
-
將DIV放置在網頁中間用MARGIN 標簽,0 auto,0代表垂直 ,auto代表左右方向。查看全部
-
網頁高度可以自適應查看全部
-
網頁寬度可以根據不同電腦屏幕分辨率設成百分比形式查看全部
舉報
0/150
提交
取消