twitter-bootstrap Bootstrap 4.1 中的 bd-highlight 是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50978962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is bd-highlight in Bootstrap 4.1?
提问by John
On the bootstrap 4.1 documentation page for flexbox, there are several examples where the class bd-highlightis used. For example:
在flexbox的 bootstrap 4.1 文档页面上,有几个bd-highlight使用该类的示例。例如:
<div class="d-flex p-2 bd-highlight">I'm a flexbox container!</div>
What is the use of bd-highlight?
There doesn't seems to be any documentation for this class.
有什么用bd-highlight?
这个类似乎没有任何文档。
回答by David Liang
I think this is just a custom css class to highlight the examples, i.e., set background color and borders, on the documentation pages.
我认为这只是一个自定义 css 类,用于在文档页面上突出显示示例,即设置背景颜色和边框。
.bd-highlight {
background-color: rgba(86,61,124,0.15);
border: 1px solid rgba(86,61,124,0.15);
}
bd = Bootstrap Documentation?
bd = Bootstrap 文档?

