【问题标题】:How to resize glyphicon icon horizontally?如何水平调整字形图标的大小?
【发布时间】:2022-01-18 20:24:14
【问题描述】:

我想水平调整“glyphicon-menu-right”图标的大小,而不是垂直调整。我知道可以使用'font-size'属性调整图标的大小,在这种情况下:图标的大小会同时调整高度和宽度(水平和垂直)。但我只想改变宽度(水平尺寸)

【问题讨论】:

    标签: css icons glyphicons


    【解决方案1】:

    您可以使用 transform:scale(2,1) CSS 属性水平调整字形图标的大小。其中 scale 的第一个参数是水平尺寸,第二个参数是垂直尺寸。

    <span class="glyphicon glyphicon-align-right" aria-hidden="true" style="transform: scale(2,1);"></span>
    

    【讨论】:

      猜你喜欢
      • 2013-07-24
      • 1970-01-01
      • 1970-01-01
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-22
      相关资源
      最近更新 更多