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

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

WBOY
Release: 2016-06-24 11:20:19
Original
1149 people have browsed it




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



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


回复讨论(解决方案)

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

<td></td><td></td>
Copy after login


.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());
Copy after login

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template