简体   繁体   English

为什么我的可视界面在 IE 11 上不起作用,但它在边缘、chrome firefox 等中起作用。显示:flexbox 可能是问题所在?

[英]Why my visual interface doesn't work on IE 11 but yes it does in edge, chrome firefox etc.. display:flexbox could be the problem?

There is a lot of things in my web project that doesn't work on IE 11. I have tables inside of divs and that div have display: flex inside.我的 web 项目中有很多东西在 IE 11 上不起作用。我在 div 中有表格,并且 div 在里面有display: flex They are shown well on all platforms but IE 11. In IE 11 seems to have height: 1px due to I don't really reach to see the table well.它们在除 IE 11 之外的所有平台上都显示良好。在 IE 11 中似乎有 height: 1px,因为我并没有真正伸手去看桌子。

I have another div that owns a table that I set invisibility hidden calling a function at the beginning of the rendering (not static, just check a state and then apply or not if it should be hidden or not) and I had checked by logs that should be hidden and it still appears like the other table.我有另一个 div,它拥有一个表,我在渲染开始时调用了 function 设置了不可见性隐藏(不是 static,只需检查 Z9ED39E2EA931586B6A985A6942EF573E,然后通过日志检查是否应该隐藏或不应用)应该被隐藏,它仍然像另一个表一样出现。

I use this.myDivTableContent.style= 'visibility: hidden';我使用this.myDivTableContent.style= 'visibility: hidden'; to hide it that works perfectly in all other browsers.隐藏它在所有其他浏览器中都能完美运行。

I don't know what I have done bad but since I decided to see how in IE 11 works is like all project visual interface will have to be changed if I want to make work on it.我不知道我做错了什么,但是自从我决定看看 IE 11 是如何工作的,如果我想在它上面工作,所有项目的视觉界面都必须改变。

I let you 2 pictures to see the diff with chrome and IE 11.我让你 2 张图片来查看 chrome 和 IE 11 的差异。

CHROME:铬合金:

在此处输入图像描述

IE11: IE11: 在此处输入图像描述

display: flex is partially supported by IE11.

When in doubt, you can use the site: https://caniuse.com/#search=display%3Aflex如有疑问,您可以使用该网站: https://caniuse.com/#search=display%3Aflex

You can use tables to avoid using flex您可以使用表格来避免使用 flex

Look at this: https://css-tricks.com/complete-guide-table-element/看这个: https://css-tricks.com/complete-guide-table-element/

You can also try some polyfill like this:你也可以试试这样的 polyfill:

You should change all you'r view but it will be a little more easy.你应该改变所有你的看法,但这会更容易一些。

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

相关问题 为什么此代码在FireFox和IE中不能使用,而在Chrome中不能使用? - Why Doesn't This Code Work in FireFox and IE but does in Chrome? 下载在 firefox & IE & Edge 中不起作用(扩展问题) - download doesn't work in firefox & IE & Edge (extension problem) Onclick在Firefox中不起作用,但在Chrome中-是 - Onclick doesn't work in Firefox, but in Chrome - yes Javascript在Firefox和IE / Edge中不起作用 - Javascript doesn't work in firefox and IE/edge extjs在chrome中正常工作,但在Firefox或IE中不显示任何内容 - extjs work properly in chrome but does't display anything in firefox or ie 为什么JavaScript不适用于Firefox / Chrome但适用于IE? - Why doesn't the JavaScript work for Firefox/Chrome but for IE? jQuery UI droppable在IE和Firefox上不起作用(但在Chrome上有效) - jQuery UI droppable doesn't work on IE and Firefox (but does on Chrome) 为什么这个代码不能在IE11,Chrome,Firefox中运行,但是可以在IE8中运行? - Why won't this code work in IE11, Chrome, Firefox, but will work in IE8? Javascript函数不适用于Firefox,但适用于Chrome,Safari,IE和Edge - Javascript function does not work in firefox but does in chrome, safari, IE and edge 为什么这适用于 IE,但不适用于 Firefox 或 Chrome? - Why does this work for IE but not for Firefox or Chrome?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM