English 中文(简体)
jqueryuimesroller
原标题:jqueryui themeroller
  • 时间:2010-04-06 21:42:05
  •  标签:
  • jquery-ui

I m 学习《框架一》中的内容。

<span class="ui-icon ui-icon-circle-minus"></span>

produces an icon of a minus sign inside a circle.
Using the ThemeRoller Firefox Bookmarklet, I was able to change the color of the icon to red (to make it look like a delete button).

问题:我怎么能做一个红树,另一个颜色?

<span class="ui-icon ui-icon-circle-plus"></span>

我这样说是绿色的。

最佳回答

使用<代码>ui-state-...的班次,将元件状况改为元件。 你需要设计你的主题,以便不同国家的项目(光彩、over、活性、耳光、de)有不同的肤色。

<span class="ui-icon ui-icon-circle-plus ui-state-highlight"></span>

我建议不要以这种方式使用这些州(即改变肤色)。 我是顺便提一下地利用各州,使信条符合国家的要求。 如果我特别需要红色/绿色信标,那么我就会产生这些信标,具体来说就是图像,而只是直接使用这些信标,而不是试图设计这个主题,只为这些信标作出不同的肤色选择。

关于其价值,我想到FamFamFamsil icons与j Query UI相当。

问题回答

你可以这样做,至少不是在默勒的情况下这样做。 研究人员为此使用一种 sp图像......一种包含所有信条的大形象。

您可以提出另一个主题,与你的形象相仿,并进入贵方的“核心倡议”,并修改<代码>。

它希望:

.ui-icon-circle-plus { background-position: 0 -192px; }

它需要研究这样的情况:

.ui-icon-circle-plus {
   background-image: url(RedIcons.png);
   background-position: 0 -192px; 
}

您可以查看<代码>.ui-icon风格,了解目前使用的图像。





相关问题
Using jQuery Plugins with Wordpress

Having a bit of trouble using jQuery plugins (Superfish, jQuery UI, etc) using Wordpress. Everything works fine in my plain non-Wordpress site, but Wordpress seems to conflict with JQuery. There must ...

Jquery TableSorter 2.0 - Revert Sort order

All, I am using the JQuery TableSorter Plugin. The table sorts fine for the selected columns. Consider that when the page loads, there is no sorting taking place. Now, if the table is sorted by one ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

热门标签