同样的html结构,同样的style,竟然展现的样式差异很大,一时没了想法,像个无头苍蝇。索性我就把console下的html复制到notepad++进行对比,看出了一点端倪,见下图。左侧为js生成的html,右侧为页面(.aspx)中的html
var html =
[
"
\n".format(catId),
"\n",
"\n".format(catId),
"{0}\n".format(catName),
"[编辑][删除]\n".format(catId),
"
",
"\n",
"\n".format(catName),
"\n".format(catId),
"\n".format(catId),
"
\n",
"\n"
].join("");