Bootstrap 4中Bootstrap 3'btn-default'类的等价物是什么?

Ail*_*Ail 7 css twitter-bootstrap bootstrap-4

btn-default在Bootstrap 3中创建了一个很棒的按钮.

<a class="btn btn-default">link</a>
Run Code Online (Sandbox Code Playgroud)

Bootstrap 4中是否有等价物?

Web*_*ter 11

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

这是一个带有实时预览的代码片段(注意a buttona标签之间的区别):

<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>
Run Code Online (Sandbox Code Playgroud)

参考:

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