.left{?width:240px;?height:600px;?background:#ccc;?position:absolute;?left:0;?top:0}
.main{?height:600px;?margin:0?240px;?background:#9CF}
.right{?height:600px;?width:240px;?position:absolute;?top:0;?right:0;?background:#FCC;}老師設(shè)置的這個(gè)三列左右固定的布局為什么margin了240px后沒有產(chǎn)生間距而是緊貼著呢?我百度了說塊狀元素之間的外間距會(huì)融合,但是后面的課程我看兩個(gè)DIV元素margin了20px后他們之間會(huì)有外間距產(chǎn)生啊。請問這是為什么呢?
添加回答
舉報(bào)
0/150
提交
取消