我正在使用模態對話框來提示用戶消息。它在IE中正常工作,但只顯示Firefox的第一行。我怎樣才能解決這個問題。這是我的信息如何格式化。在firefox中截斷的模態對話框消息
var modal = "<div id='modal_pop'><table><tr><td> "
+ "Please check you have a valid value to proceed.<br> Change the value if possible. Value should be valid to proceed further.<br>"
+ "Value should not be a number or a special case character<br>
Make changes and save the work before exiting it.<br> "
+ "Click logoff now or continute using the application.</td> </tr> </table></div>";
,這是jQuery的對話框:
var showPopup = function() {
$(modal).dialog({
buttons: {
"Test": function() {
//ABC
},
"Test1": function() {
//XYZ
}
},
modal: true,
width: 430,
height: 100,
resizable:'yes',
scroll:'no'
});
}
jsfiddle.net是一個完美的地方來顯示您的演示 – mplungjan