您的位置:首页技术文章
文章详情页

子元素的定位的问题

【字号: 日期:2022-10-29 13:43:28浏览:53作者:猪猪

问题描述

.left{

position: absolute;

left: 0;

width: 200px;

height: 600px;

background-color: #f03333;

}

.right{

position: absolute;

right: 0;

width: 750px;

height: 600px;

background-color: #f06666;

}

我是这样写的 才能分开 安老师写的 会重叠

问题解答

回答1:

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

相关文章: