兄弟节点的cover-image导致cover-view垂直向下偏移
代码结构:
<cover-view class='parent'> <cover-image class='img'/> <cover-view class='txt'>测试文本</cover-view></cover-view> |
.parent{ height:24px; line-height: 24px; text-align: center; position: relative;}.img{ width:24px; height: 24px; display: inline-block; margin-right: 10px;}.txt{ font-size: 16px; font-weight: 400; font-family: PingFangSC-Regular,PingFangSC; display: inline-block; height: 24px;} |
iOS有问题,Android正常。
去掉图片后正常。
