是否有任何可显示的polyfill:表格,表格行,表格单元格等 [英] Are there any polyfills for display: table, table-row, table-cell etc

查看:107
本文介绍了是否有任何可显示的polyfill:表格,表格行,表格单元格等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到,出于很多目的,显示:表以及同样的表行,表单元格等具有非常有用的定位属性,并且可以代替浮点数用于许多目的,例如制作无浮动菜单和页脚更好地对齐但是,缺乏支持确实是一种威慑力。

I'm realizing that, for a lot of purposes, display: table and likewise table-row, table-cell and so forth have very useful positioning properties, and can be used instead of floats for a lot of purposes, such as for making floatless menus, and better aligned footers. However, the lack of support is a real deterrent.

我想知道polyfill有哪些选项可以模拟显示:表格,表格单元格,表格行等?

I'd like to know what options are there for polyfills to emulate display: table, table-cell, table-row etc?

推荐答案

表行的支持实际上是非常好的。从版本8开始,它就已在IE中: http://caniuse.com/#search=table-row

The support for table-row, for instance, is actually pretty good. It's been in IE since version 8: http://caniuse.com/#search=table-row.

如果您正在寻找在IE6和7中对其进行修补的垫片,则可能会在 display-table.htc ,它是专门为IE6 / 7设计的。

If you're looking for a shim to patch it in IE6 and 7, you might find what you're looking for in display-table.htc, which is designed specifically for IE6/7.

这篇关于是否有任何可显示的polyfill:表格,表格行,表格单元格等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆