2015-12-11 28 views
0

我正在一個angularjs網站上,當我上傳我的網站到公共服務器 它工作正常,如果我通過Chrome打開此網站,但在Firefox中只索引內容顯示給用戶和路由更改donot添加模板到ng視圖? 有控制檯只有這個沒有錯誤或警告:爲什麼angularjs網站無法在Firefox中顯示ng-view內容?

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience

+0

你能提供你的HTML代碼(你在哪裏使用ng-view)? – enguerranws

+1

[Javascript console.log導致錯誤:「主線程上的同步XMLHttpRequest已被棄用...」](http://stackoverflow.com/questions/24639335/javascript-console-log-causes-error-synchronous -xmlhttprequest - 上的-主THR) – enguerranws

回答

0

我覺得很愚蠢的錯誤在火狐狸女巫加上「高度:0像素」我的看法類,它使我的NG-觀點無形... 。

我加了'height:auto!important;'風格來顯示我在ng-view上的內容。

相關問題