背景圖片是可以給予一個按鈕的背景圖像我真的有,我想用一個按鈕,如果他們留在喜歡默認的按鈕位置將是很好的圖像。現在我只是讓他們的對話裏,但其餘內容是動態的,我不想讓他們消失滾動條出現時爲jQuery UI的對話框按鈕
編輯: 行,所以我想出如何使它背景圖片但後來我不能看到整個圖像
$("#statusbox").dialog({
autoOpen: false,
bgiframe: true,
modal: true,
width: 'auto',
height:'auto',
position: 'top',
title:"Check Order Status",
open: function(event, ui) {
$(this).css({'max-height': $(window).height()-$(this).height() - 50 , 'overflow-y': 'auto'});
$('.ui-dialog-buttonpane').find('button:contains("Find")').css("background-image", "url(images/order_now.gif)"); ;
},
buttons: {
Find: function() {
//do find
}
}
});
可能有更多的按鈕來
這似乎是去什麼,我想要做的感謝你的最佳途徑 – mcgrailm 2010-05-06 12:24:32