這是引導選擇造成您的問題...
.btn-group > .btn:focus { z-index: 2; }
它被應用到該按鈕...
<button type="button"
class="btn dropdown-toggle btn-default"
data-toggle="dropdown"
title="2-3 години (92-98 см)"
aria-expanded="false">
<span class="filter-option pull-left">2-3 години (92-98 см)</span>
<span class="bs-caret">
<span class="caret"></span>
</span>
</button>
不要修改引導選擇。取而代之的是自定義類添加到您的按鈕,像這樣......
<button ... class="btn dropdown-toggle btn-default example" ...>
...
</button>
...在你的自定義CSS使用相同的選擇設置z-index
到0
,但包括自定義類的名字。這將增加特異性並適當地覆蓋。
.btn-group > .btn.example:focus { z-index: 0; }
我們需要您正在使用 – baao