Are there any polyfills for display: table, table-row, table-cell etc

寵の児 提交于 2019-12-10 15:08:06

问题


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.

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


回答1:


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.

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.



来源:https://stackoverflow.com/questions/10365646/are-there-any-polyfills-for-display-table-table-row-table-cell-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!