2013-02-26 26 views
0
.modal-confirm.modal.hide.fade 
div.modal-header 
    button.close(data-dismiss='modal') x 
    h3 
div.modal-body 
    p 
div.modal-footer 
    button(data-dismiss="modal").cancel.btn Cancel 
    button.submit.btn Ok 

的javascript:Twitter的引導2.3.0模式過渡沒有顯示

$('#login-form #forgot-password').click(function(){ $('#get-credentials').modal('show');}); 

這個曾經工作得非常好,但我升級到Twitter的引導2.3.0和模態不會出現在窗口的中間,它被卡在窗口的頂部。 的jQuery 1.8.0版本

enter image description here

+0

確保你沒有點擊模式時您正試圖在Chrome中「檢查元素」。它打破了bootstrap的定位。假設你正在使用chrome。 – 2013-02-26 03:10:03

+0

無法真正幫助出來一個測試頁面,看看你有什麼確切的問題。請發佈測試頁面或jsfiddle – Shail 2013-02-26 06:31:21

+0

相同的代碼適用於jquery1.8.0 + bootstrap2.0.4,現在升級到bootstrap 2.3.0後無法正常工作。沒有代碼更改,只需從以下位置升級:netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js – user1447121 2013-02-26 18:36:31

回答

0

我看着在引導-min.css,V2.0.4和V2.3.0的差異:

modal.fade.in{top:10%} in 2.3.0 
and 
modal.fade.in{top:50%} in 2.0.4