gpt4 book ai didi

javascript - 用于 Scriptaculous/Prototype DOM 元素的 Colspan

转载 作者:行者123 更新时间:2023-11-28 09:34:48 24 4
gpt4 key购买 nike

我使用 scriptaculose/prototype Builder 来创建 TR 和 TD。 colspan 在 IE 中不起作用,但在 FF 和 Chrome 中起作用。您在这个问题上有什么经验吗?

这在 IE 中不起作用,但在 FF 和 Chrome 中有效:

Builder.node('td',{'colspan':'12','class':'bdr-bottom'},(noteText))

这适用于 IE、FF 和 Chrome:

for (var i=1; i<numCols; i++)
{
noteRowSpan=Builder.node('td',{'class':'bdr-bottom'},(''));
$(noteRow2).insert($(noteRowSpan));
}

最佳答案

谢谢。我正在使用新元素,它工作正常。如何使用嵌套的新元素?该代码不起作用:

noteRow1= new Element('tr',                           
new Element('td',{'class': 'bld rt'},'Date:'),
new Element('td').update(noteText)
);

谢谢。

关于javascript - 用于 Scriptaculous/Prototype DOM 元素的 Colspan,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13237958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com