uni-app开发小程序,css样式 手机适配苹果13,边框有一部分不显示虚化是为什么呢?

新手上路,请多包涵

弹性盒布局样式在ios13上有一部分不显示虚化,求解决方法
image.png

.footerBox{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 48rpx 64rpx 0 64rpx;
    .footerLeft{
        width: 200rpx;
        height: 64rpx;
        border-radius: 32rpx;
        border: 1rpx solid #DC6E61;
        font-size: 28rpx;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #C22E1C;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .footerRight{
        width: 200rpx;
        height: 64rpx;
        border-radius: 32rpx;
        border: 1rpx solid #97989A;
        font-size: 28rpx;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #00011C;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

image.png

阅读 2.7k
2 个回答

这个问题我遇到过,border的使用1rpx的话有些机型会出现这个问题,建议使用1px替代。

新手上路,请多包涵
.footerLeft{
        width: 200rpx;
        height: 64rpx;
        line-height: 64rpx;
        text-align: center;
        font-size: 28rpx;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #C22E1C;
        box-sizing: border-box;
        position: relative;
        border: none;
        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            border: 1px solid #DC6E61;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            width: 200%;
            height: 200%;
            -webkit-transform: scale(0.5);
            transform: scale(0.5);
            -webkit-transform-origin: left top;
            transform-origin: left top;
            border-radius: 64rpx;
        }
    }
推荐问题