Satrol_ 2022-11-20 15:24 采纳率: 100%
浏览 5
已结题

伪元素设置字体图标大小不影响图标本身大小

img


html

        <div class="search_module_hd">
            <a href="" class="sort"></a>
            <div class="search_con"></div>
            <a href="" class="register"></a>
        </div>

less


span {
            position: absolute;
            top: 12px;
            left: 30px;
            color: #cccccc;
            &::after {
                content: '';
                font-family: 'icomoon';
                display: inline-block;
                width: (16rem/@base_font);
                height: (16rem/@base_font);
            }
        }
  • 写回答

1条回答 默认 最新

  • 你好!机器人 2022-11-20 15:43
    关注

    font-size

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 11月28日
  • 已采纳回答 11月20日
  • 创建了问题 11月20日