Bootstrap 4中的Bootstrap 3'btn-default'类的等效项是什么?

乔治·卡内

btn-default在Bootstrap 3中创建了一个不错的按钮

<a class="btn btn-default">link</a>

Bootstrap 4中是否有等效功能?

Web开发助推器

btn-outline-secondary类和btn-outline-light自举类4对曾经被认为是2层最接近的替代品btn-default在引导3。(有没有完全等效于引导4)

这是带有实时预览的代码片段(请注意abuttona标记之间的区别):

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

<div class="container m-3">
    <a class="btn btn-outline-secondary">outline-secondary link</a>
    <button type="button" class="btn btn-outline-secondary">outline-secondary 'button'</button>
    <br><br>
    <a class="btn btn-outline-light">outline-light link</a>
    <button type="button" class="btn btn-outline-light">outline-light 'button'</button>
</div>

参考:

https://getbootstrap.com/docs/4.0/components/buttons/#outline-buttons

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章