右上角对齐,真机和模拟器
发布于 6 年前 作者 renjie 15874 次浏览 来自 问答

/* 活动Image */

.huodong{

    width: 76rpx;

    height:66rpx;

    position: absolute;

    right: 0;

    float: right

}

<view style=“width:500rpx;height:160rpx;display:inline-flex;flex-direction:column;margin:10rpx 0rpx”>

          …

            <!-- 活动Logo -->

            <image class=“huodong” src="/images/fitment/huodong.png"></image>

        </view>

在模拟器上面能正确显示在右上角,在真机里面现在右下角偏下的位置,这是为何?

回到顶部