daily-share icon indicating copy to clipboard operation
daily-share copied to clipboard

css 处理文字两边自适应(iOS 兼容)(2020-05-27)

Open yaogengzhu opened this issue 4 years ago • 0 comments

css 处理文字两边自适应(iOS 兼容)

@mixin justify_and_ios($top: 0) {
    position: relative;
    top: $top;
    display: inline-block;
    height: 100%;
    width: 100%;
    text-align: justify;
    vertical-align: top;
    &::after {
        display: inline-block;
        width: 100%;
        content: '';
        height: 0;
    }
}

.text-aligin {
    @include justify_and_ios()
}

yaogengzhu avatar May 27 '20 10:05 yaogengzhu