1px邊框過粗解決方案

將容器寬高設爲原寬度的兩倍,然後縮小50%;邊框寬度變爲0.5px。

.wsyyt_info .main-account-label {
    position: relative;
    display: inline-flex;
    height: 3.2rem;
    width: 3.2rem;
    border: 1px solid #3381E3;
    border-radius: .6rem;
    -webkit-transform: scale(0.5, 0.5);
    transform: scale(0.5, 0.5);
    transform-origin: top left;
    color: #3381E3;
    justify-content: center;
    align-items: center;
    top: 0.9rem;
    margin-left: 1.25rem;
}

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章