开发者

How define the COLSPAN of a new Element TD

I have a small problem wi开发者_JAVA技巧th IE

With Firefox, I can create a new TD element with a Colspan = TR size :

 new Element('td',{'colspan' : '0'})

But this code does not work on IE.

Do anybody have a solution ?

Thanks a lot


I choosed an other solution :

new Element('td',{'colspan': myTr.childElements().size()})

with myTr the previous


There's a test failure report that acknowledges IE does not support that feature.

As suggested in this answer, you might want to set colspan to a value greater than the total number of columns in your table:

new Element('td', {'colspan': '1000'})
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜