页面样式口吃/跳舞负载

时间:2017-02-15 21:20:59

标签: javascript html css .net twitter-bootstrap

我有一个.NET MVC项目,其中记录显示在表格上。

当我第一次加载页面时,我设置的表格就是这么小的“跳舞”。我不知道如何描述它。见下文:

enter image description here

我认为这可能与我的CSS重写Bootstrap有关。但是当我从我的视图中取出Bootstrap类引用时,它仍然会发生。

在我将此CSS添加到我的文件后,这种情况开始发生:

ngOnInit(): void {
  this.agenceService.getAgences().then(agences => this.agences = agences);

  if (this.candidat && this.candidat.agence) {
    this.candidat.agence = this.agences.find(agence => agence.name === this.candidat.agence.name);
  }
}

此时,我只是不确定如何解决此问题,而且很难找到关于此主题的任何内容。什么可能导致这种情况?

0 个答案:

没有答案