如何拥有一个标题超过一行的JQuery Dialog?
见:http://jsfiddle.net/VKcJ7/7/
我尝试过使用换行符,并为标题和标题栏摆弄JQuery UI CSS类,但似乎没有任何工作.
JS:/ JQuery:
$(document).ready(function () {
$('#dialog').dialog({
autoOpen: false,
modal: true,
title: 'Something really long wow \n too much to have in a title but oh well'
//adding the newline character \n does nothing!
});
});
Run Code Online (Sandbox Code Playgroud)
CSS:
.ui-dialog-title{
}
.ui-dialog-titlebar{
}
Run Code Online (Sandbox Code Playgroud)