有谁可以告诉我为什么这在Safari中不起作用?
var el = "#divName";
$(el).prepend($("<div id='" + id + "' style='position: absolute; top: -35px; width: 100%; height: 35px; clear: all;'></div>")
.data("data", o)
.html("<table style='width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; font-family: Arial,Helvetica; font-size: 13px;' cellpadding='0' cellspacing='0'><tr style='position: absolute; top: 0px; left: 0px;'><td style='width: 35px; position: absolute; top: 1px; left: 1px; line-height: 35px;'><img src='" + originImg + "' style='height: 30px; width: 30px;' /></td><td style='position: absolute; width: 800px; height: 35px; left: 38px;'><b>" + o.from + "</b><br />"+o.text+"</td></tr></table>"));
$(el + " > div:first").animate({ top: "+=" + border }, 1000);
$(el + " > div:gt(0)").animate({ top: "+=" + border }, 1000);
$(el + " > div:gt(0)").css("border-top", "1px solid #ccc");
它在Firefox中完美运行...在Safari中,div本身向下移动,但div中的表格不会随之移动。此外,当我单击文本框时,该表将“弹出”。很奇怪......有人想猜猜出错了吗?