.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;}老師設置的這個三列左右固定的布局為什么margin了240px后沒有產生間距而是緊貼著呢?我百度了說塊狀元素之間的外間距會融合,但是后面的課程我看兩個DIV元素margin了20px后他們之間會有外間距產生啊。請問這是為什么呢?
- 2 回答
- 0 關注
- 1357 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消