Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为<;选择>&书信电报;选项>;使用jquery还是css?_Jquery_Css - Fatal编程技术网

如何为<;选择>&书信电报;选项>;使用jquery还是css?

如何为<;选择>&书信电报;选项>;使用jquery还是css?,jquery,css,Jquery,Css,如何为html标记设置样式 <option> using jquery or css? 使用jquery还是css? 您可以使用jquery Selected library设置选择框的样式 非常低的质量问题。。但这是 您可以使用以下方法在外部CSS中设置样式: option {color:green;} 您可以像这样使用内嵌样式: <option style="color:green;"> 您可能需要查看jQuery插件 我曾在IE-7中亲自测试过它及其工作原

如何为html标记设置样式

 <option> using jquery or css?
使用jquery还是css?

您可以使用jquery Selected library设置选择框的样式


非常低的质量问题。。但这是

您可以使用以下方法在外部CSS中设置样式:

option {color:green;}
您可以像这样使用内嵌样式:

<option style="color:green;">

您可能需要查看jQuery插件


我曾在
IE-7

中亲自测试过它及其工作原理,以下是针对select选项标签的css和jQuery的链接:

.
.


希望这些链接对您有所帮助。

您好,请尝试使用这些链接

http://bavotasan.com/2011/style-select-box-using-only-css/
http://cssdeck.com/item/265/styling-select-box-with-css3
http://cssglobe.com/post/8802/custom-styling-of-the-select-elements
或者你也可以使用jquery插件,比如

http://adam.co/lab/jquery/customselect/
http://www.paulund.co.uk/how-create-nice-looking-dropdowns-using-dropkick-js

已尝试
选择选项{/*css code*/}
。。??但是注意你不能让它工作在IE.请考虑首先搜索。有人投票支持这个?为什么?请详细说明名称/站点,因为现在我们必须单击以查看我们已经知道的站点。请编辑您的答案,并告诉我们使用这种方式有一些样式选项。@MostafaShahverdy让提问者编辑他的问题!