Tag:css
Article From:https://segmentfault.com/q/1010000012151648
Question:

The effect that was intended to be achieved

Code:

.my-detail-header-avatar-image {
    width: 120rpx;
    height: 120rpx;
    border-radius: 60rpx;
    border: 8px solid #FFFFFF;
    box-shadow: 0 1px 12px 0 rgba(216,216,216,0.50);  
}

That’s the way it is written.

How to do it correctly?

Answer 0:

You try border-radius: 120rpx; it may be the relationship between rpx and PX conversion.

Leave a Reply

Your email address will not be published. Required fields are marked *