如何重写一个jQuery主题 [英] How to override a jquery theme

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

问题描述

我使用平滑的主题与jQuery的标签,我想重写默认主题的几个选项卡上的样子,我怎么会去这样做。我曾尝试以下内容:

I am using the Smoothness theme with Jquery tabs, and I want to override the look of the default theme on a few tabs, how would I go about doing that. I have tried the following:

$('#tab-id').css('background', '-moz-linear-gradient(center top, #999999, #494949 75%, #f3c84b)');

当用户点击选项卡上的我称之为从点击功能。

I call this from a click function when the user clicks on the tab.

我也试过 .addClass 过,但也没有覆盖平滑的主题。

I also tried .addClass too, but that also didn't override the smoothness theme.

样在我束手无策,任何帮助将是AP preciated。

Kind of at my wits end, any help would be appreciated.

推荐答案

只需在加载您的jQueryUI的CSS表日后外部CSS文件中定义的参数,如果在标签上使用一个ID,你只需引用该ID在你的CSS。

Just define the parameters in an external CSS files that are loaded AFTER your jQueryUI CSS sheet, if you use an ID on the tabs, you simply reference that ID in your CSS.

没有必要通过JS样式的CSS!

No need to style the CSS through JS!

这篇关于如何重写一个jQuery主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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