jQuery对话主题和风格 [英] jQuery dialog theme and style
本文介绍了jQuery对话主题和风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改jQuery对话框的标题栏的背景颜色?
How do I change the background color of the title bar of a jQuery dialog?
我已经看过themeroller,但对我来说似乎不起作用。
I have looked at the themeroller but it does not seem to work for me.
谢谢
推荐答案
我这样做(添加状态错误样式):
I do this way (adding "ui-state-error" style for header):
<script type="text/javascript">
$(function () {
$("#msg").dialog({
open: function () {
$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error");
}
});
});
</script>
这篇关于jQuery对话主题和风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文