jQuery相当于YUI StyleSheet Utility? [英] jQuery equivalent of YUI StyleSheet Utility?

查看:75
本文介绍了jQuery相当于YUI StyleSheet Utility?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery(或其中的一个插件)是否具有与 YUI StyleSheet Utility相同的功能?

Does jQuery - or one of it's plugins - have equivalent functionality to the YUI StyleSheet Utility?

StyleSheet实用程序能够从头开始创建新的样式表,以及修改现有样式表,作为来自同一域或任何元素的元素的属性inline elements。

"The StyleSheet Utility is capable of creating new stylesheets from scratch as well as modifying the existing stylesheets held as properties of elements sourced from the same domain or any inline elements."

这是我相当肯定的是创建和修改CSS 样式表自己循环通过DOM和改变元素的 style 属性(作为 jQuery.css()方法)。

This (I'm fairly sure) is creating and modifying CSS stylesheets themselves not looping through the DOM and changing element's style property (as the jQuery.css() method does).

我认为这种技术有可能显着改变许多用户界面相关的Javascript的编写方式,所以有兴趣听到任何其他库,它已被实现了。 >

I think this technique has the potential to significantly change the way a lot user interface related Javascript is written so would be interested to hear about any other libraries where it's been implemented too.

推荐答案

找到一对看起来像他们做类似的事情。我没有测试过他们。 jQuery.Rule看起来很不错,虽然

Found a couple that look like they do similar things. I haven't tested them. jQuery.Rule looks to be pretty good though

jQuery.Rule by Ariel Flesler

jQuery.Rule by Ariel Flesler


此插件允许快速创建/操作的CSS规则,在jQuery方式。它包括链接,使用它们的迭代,使用上下文的选择器等功能。

This plugin allows quick creation/manipulation of CSS Rules, in a "jQuery-way". It includes features like chaining, iteration using each, selectors with context.

Jeremy Lea的 GlobalStylesheet


启用使用全局样式表(而不是内嵌CSS)的CSS修改。这对于修改要保持持久的CSS样式特别方便,直到页面被重新刷新。

Enables CSS modification that uses a 'global' stylesheet, rather than inline CSS. This is particularly handy for modifying CSS styles that you want to remain persistent until a page is refreshed again.

这篇关于jQuery相当于YUI StyleSheet Utility?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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