🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
将要对齐 ``` .box1>img{ display:inline-block; vertical-align: middle; } .box2{ display:inline-block; vertical-align: middle; } ``` ``` <div class="p"> <div class="box" style="width: 400px;height: 300px;background-color: blue;"> <div class="box1"> <img src="./img/email.png" alt=""><span>111122223333</span> </div> </div> <div class="box" style="width: 400px;height: 300px;background-color: red;"> <div class="box2"></div><span>111122223333</span> </div> </div> ``` ![](https://img.kancloud.cn/44/d0/44d08fb15e120126e81fecf3e0413e05_410x621.png)