原理图: 代码实现: <style> #div1{ width:50px; height:50px; background-color: black; position:absolute; top:0; left:0; } #div2{ width:200px;