首頁  >  問答  >  主體

子元素的定位的問題

.left{

position: absolute;

left: 0;


width: 200px;

# height: 600px;

background-color: #f03333;

}

.right{

## position: absolute;

right: 0;


width: 750px;

height: 600px;

background-color: #f06666;

}

我是這樣寫的 才能分開 安老師寫的會重疊

张2400 天前1422

全部回覆(1)我來回復

  • 张

    2018-03-24 22:09:44

    找到問題了  是我看錯了  是top

    回覆
    1
  • 取消回覆