9

Has anyone tried using any of the jQuery themes in jsFiddle?

I'm interested in using the Accordion widget with a theme but having trouble implementing it in jsFiddle. The trouble is, I believe the themes require image files to populate some of its effects, and my suspicion is that jsFiddle has some sort of issue with that. I even resorted to uploading the custom css and js files from the jquery download, along with all the images, onto my personal home server and adding them as managed resources. I'm getting the functionality, but not the desired imagery.

Here's my current fiddle: http://jsfiddle.net/mendahu/CmX4k/

To see what it should be like, checked jQuery's "Humanity" theme on the UI site.

The managed resources are found here:

https://robins.homeserver.com/home/jquerycourse/ (also the images subdirectory).

As far as I can tell, the directory structure is the same (ie. the CSS document refers to all images as "images/whatever.png"), and I organized it as such on my server.

Any ideas?

4

1 回答 1

8

成功使用您在评论中链接到的主题的小提琴引用了所需的 jQuery ui css 文件。

查看小提琴左侧的“托管资源”选项卡,您将看到几个名为“jquery-ui.css”的文件。如果您将鼠标悬停在它们中的每一个上,您会看到其中一个引用了基本的 jquery 主题 css 文件,而另一个引用了一个主题文件(这两个文件都是存储在 googleapis.com 上的文件)。这就是你需要做的。

请参阅此页面以获取指向 google 托管主题的链接

于 2011-07-04T13:16:34.473 回答