為什么要設置相對定位和絕對定位
<style?type="text/css"> body{?margin:0;?padding:0;?font-size:30px;?color:#fff} .top{height:40px;?background:grey;} .main{height:400px;?width:100%;?background:red;?position:relative;} .left{height:400px;?width:200px;?position:absolute;background:blue;float:left;} .right{height:400px;width:60%;background:green;float:right;} .foot{height:20px;width:100%;background:yellow;clear:both;} </style>
我這個有什么什么問題沒有?
2015-10-22
參照物不一樣 ?實現的位置就不一樣啊
2015-10-21
還有為什么要設置相對定位和絕對定位