styling HTML form list box with CSS or jQuery(使用 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 表单列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 CSS 或 jQuery 样式化 HTML 表单列表框
基础教程推荐
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
