【发布时间】:2018-01-29 08:41:06
【问题描述】:
我的页面右侧有两张并排的图片。它在 Chrome 中完美运行并且显示正确,但在 Internet Edge 中图片非常大。我错过了什么?
代码如下:
text = "<div><center><table style=\"width:100%;\">" +
"<tbody><tr>" +
"<td align=\"left\">" +
"<a href=\"http://www." + test + "/m.aspx\"><center><img style=\"display: block; height: auto;max-width: 95%;margin: 0 auto;\" src=\"/images/" + entryM.Image + "\"></center></a>" +
"</td>" +
"<td align=\"right\">" +
"<a href=\"http://www." + test + "/test/" + entryR.url + "\" target=\"_blank\"><center><img style=\"display: block; height: auto;max-width: 95%;margin: 0 auto;\" src=\"/images/" +
entryR.Image + "\"></center></a>" +
"</td> " +
"</tr>" +
"<tr>" +
"<td style=\"text-align:center;\">test</td>" +
"<td style=\"text-align:center;\">test</td>" +
"</tr>" +
"</tbody></table>" +
"<table style=\"width:100%; margin-bottom: 30px;\">" +
"<tbody><tr>" +
"<td style=\"text-align:center;\">" +
"<a href=\"http://www." + test + "/m.aspx\"><u>test</u></a>" +
"</td>" +
"</tr>" +
"</tbody></table>" +
"</center></div>";
【问题讨论】:
-
演示对于查看问题非常有用。我认为表格布局将是解决这个问题的关键......
标签: c# css google-chrome internet-explorer responsive