3
$('.ui-dialog-titlebar-close ui-corner-all').hide();
這是隱藏我的Jquery對話框關閉'X'跨度..這不適用於我的情況。jquery hide不工作在我的對話框中關閉範圍
我試圖隱藏該關閉因爲它沒有顯示我在我的對話框中,當我調整我的對話框然後它顯示我..某些原因我的CSS沒有顯示我關閉按鈕正確在我的POPUP。
任何機構都可以幫助我。
這裏是我的代碼和CSS。
$("#window").dialog({
resizable: true,
height: 180,
title: titles,
width: 500,
modal: true,
open: function() {
$('.ui-widget-overlay').show();
$('.ui-dialog-titlebar-close ui-corner-all').hide();
},
buttons: {
"OK": function() {
$(this).dialog("close");
if (redirectURL) {
window.location = redirectURL;
}
}
}
});
這是我的CSS。
<style>
.ui-widget-overlay {
background: black;
opacity: 0.5;
filter: alpha(opacity = 50);
position: absolute;
top: 0;
left: 10;
}
</style>
任何機構可以告訴我如何顯示我的關閉「X」正確地在我的對話或者我需要隱藏關閉「X」
感謝
根據你的問題,目前還不清楚你的關閉按鈕究竟做了什麼。可以在不隱藏關閉按鈕的情況下修復顯示問題。 – 2011-01-11 20:08:04