Chinaunix

标题: JSP页面TD标签换行问题 [打印本页]

作者: wangjianEgg    时间: 2008-01-07 14:50
标题: JSP页面TD标签换行问题
页面代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Insert title here</title>

<style type="text/css">
<!--
body,td,th {
&nbsp;&nbsp;&nbsp;&nbsp;font-size: 12px;
}
-->

</style>
<script>
function document.onkeydown(){
&nbsp;&nbsp;&nbsp;var k = window.event.keyCode;     
&nbsp;&nbsp;&nbsp;if(k == 116){     
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;window.event.keyCode = 0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;window.event.returnValue= false;
&nbsp;&nbsp;&nbsp;}
}
</script>
</head>
<body bgcolor="#CBEAFF">
<div id="content">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#006EBC">
&nbsp;&nbsp;<tr>
&nbsp;&nbsp;&nbsp;&nbsp;<td height="30" bgcolor="#CBEAFF" align="center" valign="middle">详细信息</td>
&nbsp;&nbsp;</tr>
&nbsp;&nbsp;<tr>
&nbsp;&nbsp;&nbsp;&nbsp;<td height="25" bgcolor="#CBEAFF" align="left" valign="middle">测试</td>
&nbsp;&nbsp;</tr>
&nbsp;&nbsp;<tr>
&nbsp;&nbsp;&nbsp;&nbsp;<td width="100%" height="25" bgcolor="#CBEAFF" style="WORD-WRAP:break-word;" align="left" valign="middle">测试换行:。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。</td>
&nbsp;&nbsp;</tr>
</table>
</body>
</html>



那个.....无法自动换行....

我加入了
  1. style="WORD-WRAP:break-word;"
复制代码
还是没用!!

请教大家一下!谢谢了!
作者: free-av    时间: 2008-01-07 15:08
<p></p>
作者: free-av    时间: 2008-01-07 15:08

作者: taoji    时间: 2008-01-07 18:31
你用火狐吧,火狐这个好像是个顽疾
作者: orange666    时间: 2008-01-29 11:04
baidu下“css  自动换行”吧,ff下的换行确实挺困难的,不过好像还是可以解决的!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2