![](/img/trans.png)
[英]Apply css style to all primeng dialogs in my angular app
[英]Angular app taking a while to apply CSS
解決該問題的最佳方法是使用加載的.gif文件,該文件將一直顯示到頁面的所有元素都加載完畢為止。
的HTML
<!-- Loading div with some CSS and possibly text to let the user know the page is loading -->
<div class="loading"></div>
<!-- Content div which will have the hidden class removed after the page has been fully loaded and rendered -->
<div class="content hidden"></div>
當從.content中刪除隱藏的類時,應將其應用於.loading 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.