使用 CSS 或 jQuery 样式化 HTML 表单列表框 [英] styling HTML form list box with CSS or jQuery

查看:28
本文介绍了使用 CSS 或 jQuery 样式化 HTML 表单列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想简单地更改颜色并定义多行选择框或列表框的边缘.

I want to simply change the colors and define the edges of a multiple line select box, or list box.

我看到了一些类似主题的主题,但不是我正在寻找的解决方案.我需要能够:

I have seen a few threads on similar subjects, but not quite the solutions I am looking for. I need to be able to:

  • 更改元素的悬停颜色
  • 更改元素的选择颜色
  • 更改边框
  • 样式侧边滑块(非必需)

我想我可能不得不使用 JS(如果可能的话,通过 jQuery),但我更愿意使用 CSS.

I think I might have to use JS (via jQuery, if possible), but would much rather use CSS is I can.

这就是我所说的列表框

推荐答案

仅使用 CSS 是不可能做到这一点的.看看这个插件:github.com/vladfr/jquery-coolmultiple

there is no possibility to do this just with CSS. Take a look at this plugin: github.com/vladfr/jquery-coolmultiple

这篇关于使用 CSS 或 jQuery 样式化 HTML 表单列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆