Bootstrap 4 中的 .btn-default 在哪里? [英] Where has .btn-default gone in Bootstrap 4?

查看:10
本文介绍了Bootstrap 4 中的 .btn-default 在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 Bootstrap 3 到 Bootstrap 4 迁移文档:

<块引用>

按钮

  • 将 .btn-default 重命名为 .btn-secondary.

但是 Bootstrap 4

引导程序 4:

使用 .btn-light 也不会重现原来的 .btn-default.

如何恢复按钮/下拉菜单等的默认主题?

我记得 Bootstrap 4 中有一个默认按钮,但它是早期的 alpha 版本.删除了吗?

解决方案

Bootstrap 4 中的 btn-outline-secondary 类生成最接近过去的 btn-default 类代码>在 Bootstrap 3 中.

这似乎是文档中的错字".

primary 是蓝色按钮/颜色,secondary 是灰色按钮.

非常浅的灰色是btn-light.

这是 Bootstrap 4 按钮的参考链接:

https://getbootstrap.com/docs/4.0/components/buttons/

According to the Bootstrap 3 to Bootstrap 4 migration docs:

Buttons

  • Renamed .btn-default to .btn-secondary.

But the Bootstrap 4 .btn-secondary does not look at all like the old default button.

Bootstrap 3:

Bootstrap 4:

Using .btn-light does not reproduce the original .btn-default either.

How do I get my default theme back for buttons/dropdowns, etc?

I remember a default button in Bootstrap 4, but it was in an earlier alpha version. Has it been removed?

解决方案

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 is the blue button/color and secondary is the grey ones.

And the very light grey is btn-light.

Here's the reference link for Bootstrap 4 buttons:

https://getbootstrap.com/docs/4.0/components/buttons/

这篇关于Bootstrap 4 中的 .btn-default 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆