如何完全引导引导程序表按钮,当前按钮保持蓝色并且悬停在我的表按钮上只会使按钮的一半变为我想要的颜色,我希望按钮黑色(#282828),然后在盘旋或活动时稍微轻一些。风格的引导程序表按钮 - btn-primary dropdown-toggle
的jsfiddle在问题的底部
我的表是由JavaScript
function bootstrapTableStateHandler(origin, msg, type) {
console[type]("[bootstrapTable." + origin + "]", msg)
}
var $table = $('#results');
$table.bootstrapTable({
url: 'getresults.php',
search: true,
buttonsClass: 'primary',
showFooter: false,
minimumCountColumns: 2,
columns: [{
field: 'results',
title: 'results',
sortable: true,
}, ....So on and so forth
而且降表
<table id="results" data-show-columns="true" data-show-toggle="true"></table>
我下来打开这个产生试图使用下面的CSS和butto来设计样式ñ呈蓝色,当我将鼠标悬停在它只有一半的按钮变成黑色 - 轮廓也变成黑色,但 - 对不起,这么多的CSS
.btn-primary {
color: #ffffff !important;
background-color: #282828 !important;
border-color: #292730;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
color: #ffffff;
background-color: #282828 !important;
border-color: #282828 !important;
}
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
background-color: #1F1B1B;
border-color: #282828 !important;
}
.btn-primary .badge {
color: #1F1B1B;
background-color: #282828 !important;
}
.dropdown-toggle {
color: #ffffff;
background-color: #282828 !important;
border-color: #292730;
}
.dropdown-toggle:hover,
.dropdown-toggle:focus,
.dropdown-toggle:active,
.dropdown-toggle.active,
.open .dropdown-toggle.dropdown-toggle {
color: #ffffff;
background-color: #282828 !important;
border-color: #282828 !important;
}
.dropdown-toggle:active,
.dropdown-toggle.active,
.open .dropdown-toggle.dropdown-toggle {
background-image: none;
}
.dropdown-toggle.disabled,
.dropdown-toggle[disabled],
fieldset[disabled] .dropdown-toggle,
.dropdown-toggle.disabled:hover,
.dropdown-toggle[disabled]:hover,
fieldset[disabled] .dropdown-toggle:hover,
.dropdown-toggle.disabled:focus,
.dropdown-toggle[disabled]:focus,
fieldset[disabled] .dropdown-toggle:focus,
.dropdown-toggle.disabled:active,
.dropdown-toggle[disabled]:active,
fieldset[disabled] .dropdown-toggle:active,
.dropdown-toggle.disabled.active,
.dropdown-toggle[disabled].active,
fieldset[disabled] .dropdown-toggle.active {
background-color: #282828 !important;
border-color: #282828 !important;
}
.dropdown-toggle .badge {
color: #1F1B1B;
background-color: #282828 !important;
}
需要什么样式强制表按钮是黑色( #282828) 望着页面的输出,当检查按钮被称为BTN BTN-主要下拉拨动
谢谢
你能仅提供按钮的HTML和CSS?最好在一个工作的JS小提琴。如果您提供html,我认为用于生成html的JavaScript可能与问题无关。 – RMo
新增JSFiddle我的问题 – Anthony