css - 无法覆盖 Twitter Bootstrap btn 类默认字体大小

标签 css twitter-bootstrap

代码如下:

<button class="btn btn-default btn-test" style="width:200px; white-space:normal;" id="up-arrow-div" >
   <div class="col-xs-2 arrow-up-div" style="font-size:30 !important">
      <span class="glyphicon glyphicon-collapse-up arrow-up" style="font-size:30 !important"></span> 
   </div>
   <div class="col-xs-10">
      Contribute more to support Last Minute Gear!
   </div>
</button>

我在 2 个不同的地方尝试过使字形图标更大,但无济于事。输出仍然是这样的:

enter image description here 有什么想法吗?

最佳答案

改变这个:

<span class="glyphicon glyphicon-collapse-up arrow-up" style="font-size:30 !important"></span>

为此:

<span class="glyphicon glyphicon-collapse-up arrow-up" style="font-size:40px; !important"></span>

您似乎忘记定义测量类型,所以我为您添加了 px。

让我知道是否可行

关于css - 无法覆盖 Twitter Bootstrap btn 类默认字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29339510/

相关文章:

css - 我在 SCSS 文件中导入常规 CSS 文件,但是?

html - 如何使用 Twitter Bootstrap 做这个简单的响应式布局?

css - 使用 Twitter Bootstrap 将右侧内容移动到左侧

html - 将填充插入 Bootstrap 列网格

html - 如何在 Bootstrap 导航栏品牌文本下放置副标题

css - Bootstrap 3 将底部与行中的 3 列对齐

css - 为什么 Windows 上的 safari、chrome 或 firefox 不支持 `cursor:context-menu`?但它是通过IE9和Opera吗?

html - 将 span 换行到表格单元格内

html - 将 "SHARE"按钮放置在图像的垂直和水平中心(悬停触发时)

html - 像纽约时报一样创建新面板