Bootstrap 选择的自定义样式 [英] Custom styling for Bootstrap select
本文介绍了Bootstrap 选择的自定义样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现选择 Twitter Bootstrap 的下拉菜单非常难看,如何仅针对选择小部件停用 Bootstrap?或者是否可以自定义选择下拉列表的外观?
I find the select Twitter Bootstrap's dropdown very ugly, how can I deactivate Bootstrap only for the select widget? Or is it possible to customize the way the select dropdown looks?
推荐答案
您可以通过简单地添加自己的样式来覆盖 css 样式,例如:
You can overwrite the css styling by simply adding your own for example:
select {
background: #333333;
}
这是一个非常基本的示例,但它只是一个示例,说明您如何根据自己的喜好对其进行自定义.
This is a very basic example but its just an example of how you can customize it to your own liking.
这篇关于Bootstrap 选择的自定义样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文