2014-04-08 22 views
2

我得通過angularJS(v1.2.14)與最新版本自舉(V3.1.1)如何在Windows Phone滾動引導模式

的模式不會在滾動創建了一個簡單的模態例如我windows手機,而不是整個頁面滾動和模式被剪裁到窗口大小(見下面的截圖)。

它工作正常,當然在我的桌面上鉻& IE瀏覽器。沒有在iOS和Android上測試過,但我猜測它工作正常。

我將.modal { position: absolute; }添加到bootstrap.css中,但它沒有任何區別。

編輯:這似乎是同樣的問題,因爲這:https://github.com/twbs/bootstrap/issues/11153

Whole page scrolls, modal doesn't (is cut-off)

回答

2

解決的辦法是添加以下CSS樣式:

@-ms-viewport { 
    width: auto; 
} 

html,body { 
    -ms-overflow-style: none !important; 
} 
+0

謝謝,它的工作原理,它的很有用。 –