将 JGrowl 与主题滚轮结合使用
我想知道如何将我的 Jquery UI 主题与 JGrowl 一起使用。该网站说可以做到。问题在这里得到解答:
提问者似乎对答案,但是我做了解决方案所说的:包含 Jquery ui css 文件。
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
<link type="text/css" href="css/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet" />
<script type="text/javascript" src="jgrowl/jquery.jgrowl.js"></script>
<link rel="stylesheet" href="jgrowl/jquery.jgrowl.css" type="text/css"/>
但它不使用我的自定义主题。我尝试不链接到 jgrowl.css 文件,但它根本无法正常工作。
有什么想法吗?谢谢!
I want to know how to use my Jquery UI theme with JGrowl. The site says it can be done. The questions is answered here:
and the asker seemed happy with the answer, however I did what the solution said: include the Jquery ui css file.
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
<link type="text/css" href="css/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet" />
<script type="text/javascript" src="jgrowl/jquery.jgrowl.js"></script>
<link rel="stylesheet" href="jgrowl/jquery.jgrowl.css" type="text/css"/>
But it does not use my custom theme. I tried not linking to the jgrowl.css file, but then it did not work right at all.
Any ideas? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您担心它可能确实有效,但出现了意外的颜色。要对此进行测试,请切换到不同的 jQuery 主题,并查看 jGrowl 元素是否发生变化。
如果没有,请检查 jGrowl 版本。根据 http://forum.jquery.com/topic/jgrowl-question,版本1.2.0 不会自动使用 jQuery-ui 主题,但 1.2.4 版本会自动使用。
You express concern that it might actually be working, but with unexpected coloring. To test this, switch to a different jQuery theme, and see if the jGrowl elements change.
If they don't, check the jGrowl version. According to http://forum.jquery.com/topic/jgrowl-question, version 1.2.0 doesn't use jQuery-ui themes automatically, but version 1.2.4 does.