📌  相关文章
📜  如何更改选择框选项悬停背景颜色. - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:31.430000             🧑  作者: Mango

代码示例1
You can achieve your goal by using the bootstrap-select:

You will need the following CDN links:



The select list with the class selectpicker:


After this you can change/add the following properties of the CSS:

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  text-decoration: none;
  color: #ffffff;
  background-color: #f3969a;
}