Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.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
什么';我用jqueryui拉小提琴有什么问题吗_Jquery_Jquery Ui_Selectable - Fatal编程技术网

什么';我用jqueryui拉小提琴有什么问题吗

什么';我用jqueryui拉小提琴有什么问题吗,jquery,jquery-ui,selectable,Jquery,Jquery Ui,Selectable,嗨,我有一个非常简单的小提琴来了解如何使用jqueryui: 然而,它看起来不起作用。有人知道它怎么了吗 实际上,这里的错误是因为你添加了这个类 #selected .ui-selected { background: #F39814; color: white; }​ 它应该是#container.ui selected{背景:#F39814;颜色:白色;}​取而代之 实际上,其中的错误是因为您添加了这个类 #selected .ui-selected { background: #F39

嗨,我有一个非常简单的小提琴来了解如何使用jqueryui:


然而,它看起来不起作用。有人知道它怎么了吗

实际上,这里的错误是因为你添加了这个类

#selected .ui-selected { background: #F39814; color: white; }​
它应该是
#container.ui selected{背景:#F39814;颜色:白色;}​取而代之


实际上,其中的错误是因为您添加了这个类

#selected .ui-selected { background: #F39814; color: white; }​
它应该是
#container.ui selected{背景:#F39814;颜色:白色;}​取而代之


CSS中的最后一行应该是:

#container .ui-selected { background: #F39814; color: white; }
工作小提琴:


CSS中的最后一行应该是:

#container .ui-selected { background: #F39814; color: white; }
工作小提琴:

您的CSS是错误的

更改此项:

#selectable .ui-selected { background: #F39814; color: white; }
为此:

#container .ui-selected { background: #F39814; color: white; }
你的CSS是错误的

更改此项:

#selectable .ui-selected { background: #F39814; color: white; }
为此:

#container .ui-selected { background: #F39814; color: white; }