网页代码公告内容怎么换行?
<html>
<head>
<title><%=rs_home("home")%>===>>>最新公告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
}
-->
</style>
<LINK href="style.css" rel=stylesheet>
</head>
<%
id=request.querystring("id")
%><!--#include file="inc/conn.asp"--><%
rs.Open "Select * From newsdata where id="&id, conn,3,3%>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="51%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="27" width="100%" background="images/index_04.gif"> </td>
</tr>
<tr>
<td height="16" width="100%"><div align="center"><BR>
<%=rs("name")%></div></td>
</tr>
<tr>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<%=rs("neirong")%></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
参考答案:在td里面修改
<td style="word-break:break-all">
这样不管是英文还是中文都会自动换行
按照我这个绝对没有问题