2011-06-09 92 views
1

我想让我的jQuery-UI-web页面成为Themeroller Firefox bookmarklet的主题。当我在themeroller demopage上打开书签时,所有内容都会像预期的那样变化。在我自己的页面或其他示例页面上,只有URL发生更改,但样式不适用。使用Themeroller Bookmarklet

我需要开发人员工具,在我现有的网页中查找jQuery-UI的最终样式。我怎样才能做到这一点?

我用Firefox和我把我的网页放在网络服务器上,所以没有Firefox不适用本地安全限制。

回答

0

我有同样的问题。 This link解决了我的问题。

总结:自己是不是踢得好看与FF的版本以上版本10.

要解决:右击你的“的ThemeRoller开发工具”的书签,进入“属性”。
更改 '位置:' 这个 - >

javascript:(function(){if(!/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){alert("Sorry,%20due%20to%20security%20restrictions,%20this%20tool%20only%20works%20in%20Firefox");return%20false}else{if(window.jquitr){jquitr.addThemeRoller()}else{jquitr={};jquitr.s=document.createElement("script");jquitr.s.src="http://jqueryui.com/themeroller/developertool/developertool.js.php";document.getElementsByTagName("head")[0].appendChild(jquitr.s);var%20a=function(){jquitr.reloadCSS=function(){var%20c=jquitr.getHash(),b;if(jquitr.trString!==c&&c!==""){jquitr.trString=c;b='<link%20href="http://jqueryui.com/themeroller/css/parseTheme.css.php?'+c+'"%20type="text/css"%20rel="Stylesheet"%20/>';if($("link[href*='parseTheme.css.php'],%20link[href='ui.theme.css']").size()>0){$("link[href*='parseTheme.css.php']:last,%20link[href='ui.theme.css']:last").eq(0).after(b)}else{$("head").append(b)}if($("link[href*='parseTheme.css.php']").size()>3){$("link[href*='parseTheme.css.php']:first").remove()}}window.setTimeout(jquitr.reloadCSS,1000)};jquitr.reloadCSS()};window.setTimeout(a,1100)}}})(); 

然后点击 '保存'。这为我解决了它。