大家知道怎么做好html表格后换行吗?下面我们就给大家详细介绍一下吧!
<html xmlns="http://cms2.51edu.com/admin.php?mod=phpcms&file=content&action=add&catid=57&old=1>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>table内的td内容不换行</title>
<style type="text/css">
<!--
body{ font-size:12px;}
.breakLine{word-break: break-all;}
-->
</style>
</head>
<body>
<table width="400">
<tr>
<td width="90" height="30">处理人工号:</td>
<td width="410" class="breakLine">001156,001157,001145,001149,001178,001123,001140,001167,001168,001134,001135</td>
</tr>
</table>
</body>
</html>
word-break属性简单介绍如下:
语法:word-break : normal | break-all | keep-all
取值:
normal : 默认值。允许在词间换行
break-all : 该行为与亚洲语言的 normal 相同。也允许非亚洲语言文本行的任意字内断开。该值适合包含一些非亚洲文本的亚洲文本
keep-all : 与所有非亚洲语言的 normal 相同。
相信大家已经学会html表格后换行了吧!感谢大家对我们网站的支持!
相关推荐:
好看的html表格代码介绍