我正在尝试在 web 视图中为每 3 列添加图像,但图像以水平方式显示在表格之外。我哪里错了?请提示。
String str = "";
str += "<table width='200' border='1'><tr>";
int i = 1;
for (i=1; i < my_image.length-1; i++) {
if (i%3==0) {
str += "<td><a href='"+my_image[i]+"'"+" class='popup-open'><img src='"+my_image[i]+""+"width='80' height='65'></a></td></tr><tr>";
} else {
str+= "<td><a href='"+my_image[i]+"'class='popup-open'><img src=' "+my_image[i]+"' width='80' height='65'></a></td></tr>";
}
str+="</tr></table>";
}
html_content = "<strong>"+title+"</strong>" +
" <br><br><img src='"+single_image+"'width='300' height='211'>" +
"<br> " +
""+content+"<br>"+str;