简体   繁体   English

加载数据时显示html?

[英]Display html when data is loaded?

On my page I display lot of data in table, but the UI issue I face currently is that table header is displayed prior to data rendered on the screen, and it look odd. 在我的页面上,我在表中显示了大量数据,但是当前面临的UI问题是表头显示在屏幕上呈现的数据之前,而且看起来很奇怪。 Can anyone please provide solution to load html and data simultaneously. 谁能提供同时加载html和数据的解决方案。 some example will be really appreciated. 一些例子将不胜感激。 Thanks! 谢谢!

CSS 的CSS

body {
  display: none;
}

Javascript Java脚本

$(window).load(function() {
  $("body").fadeIn(1000);
});

You can use as below using jquery: 您可以通过jquery如下使用:

In css-> 在CSS->

body{
  display:none;
}

in javascript 在JavaScript中

$(document).ready(function({

  $("body").show();

});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM