1、效果图
![点击查看原图 QQ截图20231223233717.jpg](https://blog.feiba.cn/content/uploadfile/202312/c7211703345774.jpg)
实现效果:左边红色区域高度不定,跟随右边蓝色区域的高度变化自适应
<div class="content"> <div class="left">左边</div> <div class="right">右边</div> </div>
.content { position: relative; .left { width: 100px; height: 100%; position: absolute; } .right { width: 500px; height: 100%; margin-right: 124px; } }
发表评论