-
IE7兼容問(wèn)題查看全部
-
.mib_head_a { float: left; margin-right: 20px; } /* 下面這個(gè)是固定布局寫法 */ .mib_cell { display: table-cell; *display: inline-block; width: 2000px; *width: auto; }查看全部
-
單側(cè)固定(圖片+文字)查看全部
-
float---》(1)display block化 (2)去空格 style--->只能獲取內(nèi)聯(lián)樣式的值(直接在標(biāo)簽中定義的style) currentStyle || window.getComputedStyle(ele,null) 可獲取外部、運(yùn)行時(shí)以及其他的style查看全部
-
能簡(jiǎn)單的說(shuō)說(shuō)盒子模型就更好了查看全部
-
浮動(dòng)有塊級(jí)化和去空格化特性查看全部
-
.clearfix只能應(yīng)用在包含浮動(dòng)子元素的父級(jí)元素上查看全部
-
.clearfix:after {content:''; display:block; height:0; overflow:hidden; clear:both;} .clearfix {*zoom:1} .clearfix:after{ content:'',display:table;clear:both;} .clearfix{*zoom:1;}查看全部
-
浮動(dòng)使高度塌陷不是bug,而是標(biāo)準(zhǔn)! 浮動(dòng)的原本作用僅僅是為了實(shí)現(xiàn)文字環(huán)繞效果!查看全部
-
總結(jié): float: 浮動(dòng)歷史:得到圖文混排的效果. 浮動(dòng)的兩個(gè)特性: 1.破壞:父級(jí)元素高度塌陷,自身位置浮動(dòng) 2.包裹:收縮,堅(jiān)挺,隔絕 這個(gè)特性也就是BFC 為什么要清除浮動(dòng): 解決父元素高度塌陷: 只用在浮動(dòng)元素的父元素上,不浮動(dòng)不用查看全部
-
mark查看全部
-
哈哈哈查看全部
-
廢話太多查看全部
-
老師不能太啰嗦了,那么少的問(wèn)題,還分這么多課時(shí)!查看全部
-
我發(fā)現(xiàn)把帶有clear:both這句話去掉,就是<div style="clear:both; margin-bottom:100px;">clear:both;</div>改為<div style="clear:both; margin-bottom:100px;"></div> 運(yùn)行發(fā)現(xiàn)margin重疊顯現(xiàn)就消失了!求老師解釋!查看全部
舉報(bào)
0/150
提交
取消