摘要: 相对定位(position: relative;)不能重叠,因为相对定位不脱离文档流。html代码: css代码:.box1{ width: 500px; height: 500px; background-color: red;}.box2{ width: 100px; height:100px; background-color: green; position: relative; left: 100px; top: 50px;}.box3{ width: 100px; height:100px; background-color: yellow; position: relative. 阅读全文