Home >Web Front-end >HTML Tutorial >ASP.NET 页面中td里面的内容分行显示?_html/css_WEB-ITnose

ASP.NET 页面中td里面的内容分行显示?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:20:191133browse




tr.append("<td>" + TypeInfo.remark+ "</td>");       



ASP.NET 页面中td里面的内容分行显示?


回复讨论(解决方案)

.net不行!分行显示是这样吗?

<td></td><td></td>


.net中没有转义序列吗?java 有 \r 回车, \n 换行符

		StringBuilder sb=new StringBuilder();		sb.append("<table>\n<tr>");		sb.append("<td>1<td>");		sb.append("<td>2</td>");		sb.append("</tr>\n<tr>");		sb.append("<td>3<td><td>4</td>");		sb.append("</tr>\n</table>");				System.out.println(sb.toString());

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn