我的網站有問題。我使用Bootstrap 3.2而不是模式。當對話框打開時,有一個滾動條,但關閉它會使滾動條消失。我讀過很多話題,但我還沒有找到工作解決方案。有什麼辦法可以解決這個問題嗎?關閉後,滾動條消失自舉對話框
所以,這是我的對話框代碼:
$("a.removeClass").click(function() {
var uid = $(this).attr('id');
BootstrapDialog.show({
message: 'Czy na pewno chcesz usunąć tą klasę?',
title: 'Usuwanie klasy',
buttons: [{
label: 'Usuń klasę',
cssClass: 'btn-danger',
action: function(dialog) {
$(location).attr('href','index.php?app=admin§ion=classes&uid=' + uid + '&remove');
}
}]
});
});
它也並不工作:How can I prevent body scrollbar and shifting when twitter bootstrap modal dialog is loaded?
那麼......問題是什麼? – dowomenfart 2015-03-30 17:35:10
歡迎來到SO。爲了讓人們更好地幫助你,你應該確保你的問題已經清楚地說明了。同時發佈相關代碼,讓社區知道您嘗試過的解決方案。 – crazymatt 2015-03-30 18:35:39