如何应用主题进行选择 [英] How to apply theme to select

查看:96
本文介绍了如何应用主题进行选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要使用此选择: http://wiki.jqueryui.com/w/page/12138056/Selectmenu

但是我不明白,如何在自己的项目中使用这些主题之一? 我该怎么做才能在自己的页面上设置样式?

But I can't understand, how can I use one of these themes in own project? What should I do, to style selects on own page?

谢谢.

推荐答案

主题切换器

如果要添加主题切换器,则只需在页面标题中添加以下内容:

If you want to add a theme switcher then just add the following to your page header:

<script src="http://jqueryui.com/themeroller/themeswitchertool/" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
 $('#switcher').themeswitcher();
});
</script>

然后将其添加到正文

<div id="switcher"></div>


单个主题

如果您只想选择一个主题,则可以链接到google托管文件之一.有关您的链接列表,请参见此博客条目.可以使用.可以添加到页面标题的示例:

If you just want a single theme of your choice, then you can just link to one of the google hosted files. See this blog entry for a list of links you can use. Example that could be added to your page header:

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-darkness/jquery-ui.css" type="text/css" rel="stylesheet" >

这篇关于如何应用主题进行选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆