想要:IE9表格单元格鬼,活着而没有JS [英] Wanted: IE9 table cell ghost, alive and without JS

查看:190
本文介绍了想要:IE9表格单元格鬼,活着而没有JS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE9布局引擎与表有问题。空白似乎是它的根源。



如果你看到臭名昭着的鬼细胞,你知道我在说什么,如果没有,认为自己很幸运不用担心。



无论如何,我真的只想使用仅HTML 样本来测试修复。 p>

我知道在奇怪的情况下我曾经看过几个布局表,但是当我需要它时,我不能再让ghost单元出现了。 >

我需要的是一个一致的ghost单元格,而不调用JS。



我发现几个JS相关的,并且有关于排序的讨论。



这是一个很好的例子:



http://www.ncf.ca/ncf/support/ ie9_issue / index.html



一些讨论:



http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/28d78780-c95c-4c35-9695 -237ebb912d90



http://datatables.net/forums/discussion/5481/bug-ghost-columns-when-generating-large-tables/p1



http://datatables.net/forums/discussion/8248/datatable-in-ie-9-bug-with-large-tables/p1

解决方案

我设法清理html相当不错,仍然保留问题。我用等效的空格替换了所有的javascript换行符,可以删除大部分的元素属性而不影响ghost-cell。



看起来IE有一个缓冲区问题,因为删除了一个安全的单个空格或换行符区域导致鬼单元格消失,而删除整个属性不会影响渲染。



我看到您有未关闭的标签,但我也设法完全删除它们(替换为空格),而不删除鬼单元格。



结果是我有一个无JavaScript的html与ghost-cell。请参阅以下结果: http://compscicon.no/ghostcell.htm


The IE9 layout engine has issues with tables. Whitespace seems at the root of it.

If you've seen the infamous ghost cell you know what I'm talking about, if you haven't, consider yourself lucky and don't worry about it.

Anyways, I'd really like an HTML only sample to test "fixes" on.

I know I've seen it before in odd circumstances several layout tables deep, but I can no longer get the ghost cell to come up when I need it to.

What I need is a consistent ghost cell without invoking JS.

I've found several JS related ones, and there are plenty discussion on those when it comes to sorting.

This is a great sample:

http://www.ncf.ca/ncf/support/ie9_issue/index.html

Some discussions:

http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/28d78780-c95c-4c35-9695-237ebb912d90

http://datatables.net/forums/discussion/5481/bug-ghost-columns-when-generating-large-tables/p1

http://datatables.net/forums/discussion/8248/datatable-in-ie-9-bug-with-large-tables/p1

解决方案

I managed to clean up the html quite well and still keep the issue. I replaced all the javascript with equivalent spaces & newlines, and could remove most of the elements attributes without affecting the ghost-cell.

It seems like IE has a buffer problem since removing single spaces or newlines in a "safe area" cause the ghost cell to disappear, while removing entire attributes does not affect the rendering.

I see that you have unclosed tags, but I also managed to remove them altogether (replacing with spaces) without removing the ghost cell.

Result being I have a javascript-free html with ghost-cell. See result here: http://compscicon.no/ghostcell.htm

这篇关于想要:IE9表格单元格鬼,活着而没有JS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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