styling HTML form list box with CSS or jQuery

自作多情 提交于 2019-12-04 05:53:28

问题


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:

  • Change hover color of elements
  • Change select color of elements
  • Change border
  • Style side slider (not essential)

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

Here is what I mean by a list box


回答1:


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




回答2:


Try these

http://www.devirtuoso.com/2009/08/styling-drop-down-boxes-with-jquery/

http://www.adamcoulombe.info/lab/jquery/select-box/

EDIT:

Use this jQuery SelectBox plugin

The output will be like this



来源:https://stackoverflow.com/questions/5802926/styling-html-form-list-box-with-css-or-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!