首页  >  问答  >  正文

子元素的定位的问题

.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 天前1419

全部回复(1)我来回复

  • 张

    2018-03-24 22:09:44

    找到问题了  是我看错了  是top

    回复
    1
  • 取消回复