【问题标题】:IE11: very poor perfomance in rendering tables - any solutions?IE11:渲染表的性能非常差 - 有什么解决方案吗?
【发布时间】:2016-09-08 04:06:01
【问题描述】:

我的 Dom 结构如下所示:

在我的 html 网页上,有 226 个 div,对应的 id 从“content-box1”到“content_box226”。每个内容框都包含一个 svg-picture 和一个 html-table-with css-colouring。同时只显示一个内容框。内容框的导航由 html-selectbox 和 jQuery 管理。

我的问题是这个网页在 IE11 中很缺乏。为什么?尽管只显示了一个内容框,但 InterExplorer11 是否呈现所有内容框的所有 svg 和表格?我怎样才能避免这种行为?

【问题讨论】:

  • 你会在开始时显示所有内容然后隐藏它吗?还是您的内容框默认隐藏在 CSS 中?
  • 内容框默认隐藏

标签: html css internet-explorer html-table


【解决方案1】:

对于 CSS,性能方面

visiblilty: hidden;

优于

display: none;

【讨论】:

    猜你喜欢
    • 2021-09-10
    • 1970-01-01
    • 2015-07-22
    • 2014-11-14
    • 2010-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多