标题的jQuery ui对话框图像 [英] jQuery ui dialog image for the title
本文介绍了标题的jQuery ui对话框图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在指定jQuery UI对话框时,是否可以为我的标题放置图像,而不仅仅是纯文本?
Is it possible when specifying a jQuery UI dialog box, to have an image be placed for my title instead of just plain text?
谢谢
推荐答案
您可以提供任何HTML作为title
选项,例如:
You can provide any HTML as the title
option, like this:
$("#dialog").dialog({
title: '<img src="myImage.jpg" />'
});
或者,作为另一个使用户烦恼的演示,您可以这样做:
Or, as another demo to annoy the hell out of your users, you could do this:
$("<div />").dialog({
title: '<marquee>Hello</marquee>'
});
这篇关于标题的jQuery ui对话框图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文