引导4中的btn-default在哪里 [英] Where is the btn-default gone in bootstrap 4
问题描述
根据从bs3到bs4的迁移文档:
according to the bs3 to bs4 migration docs:
按钮
Renamed .btn-default to .btn-secondary.
但是辅助按钮看起来根本不像旧的默认按钮.
But the secondary does not look at all as the old default button.
我的意思是白色阴影的按钮/下拉菜单等...
I mean the white shaded button/dropdown etc...
当我执行btn-light时,这不是原始的btn-default.
When I do btn-light that is not the original btn-default.
那我该如何恢复按钮/下拉菜单等的默认主题??
So how do I get my default theme back for buttons/dropdowns etc... ?
从字面上看,AFAIR ...在bs4中有一个正确的默认按钮,但它是以前的Alpha版本.我想那是真的.
AFAIR literally now... there was a correct default button in the bs4 but it was in a former alpha version. I guess thats true.
推荐答案
Bootstrap 4中的btn-outline-secondary
类生成的内容与Bootstrap 3中的btn-default
最为接近.
The btn-outline-secondary
class in Bootstrap 4 generates the closest to what used to be btn-default
in Bootstrap 3.
在文档中似乎是错别字".
That seems to be "typo" there in the docs.
primary
是蓝色按钮/颜色,secondary
是灰色按钮/
primary
is the blue button/color and secondary
is the grey ones.
非常浅的灰色是btn-light
.
以下是Bootstrap 4按钮的参考链接:
Here's the reference link for Bootstrap 4 buttons:
https://getbootstrap.com/docs/4.0/components/buttons/
这篇关于引导4中的btn-default在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!