friend 们
我正在使用字符串生成器生成乘客列表,其中我使用了一个表,我想将背景图像添加到这个乘客列表中。我所做的是我占据了一张主 table ——
strHTML1.Append("<table align=center cellpadding='0' cellspacing='0' width='100%'>");
strHTML1.Append("<tr>");
strHTML1.Append("<td style='background-image:url('../Images/bg-m.gif')>");
strHTML1.Append("Passenger");
strHTML1.Append("</td>");
strHTML1.Append("</tr>");
.........
最佳答案
转义引号:
strHTML1.Append("<td style=\"background-image:url('../Images/bg-m.gif')\">");
https://stackoverflow.com/questions/11094621/