手机
当前位置:查字典教程网 >网页设计 >XHTML >td 内容自动换行 table表格td设置宽度后文字太多自动换行
td 内容自动换行 table表格td设置宽度后文字太多自动换行
摘要:设置table的style="table-layout:fixed;"然后设置td的style="word-wrap:break-word;...

设置table 的 style="table-layout:fixed;" 然后设置td的 style="word-wrap:break-word;" 即可

<table border="1" cellspacing="0" cellpadding="0" width="200">

<tbody>

<tr>

<td width="20">sssssssssssssssssssssssssssssssssssssssssssssss </td>

<td>aaaaa</td>

</tr>

<tr>

<td width="20">sssssssssssssssssssssssssssssssssssssssssssssss </td>

<td>aaaaa</td>

</tr>

</tbody>

</table>

【td 内容自动换行 table表格td设置宽度后文字太多自动换行】相关文章:

类型File的Input按钮功能研究

html中使用margin:0 auto整个页面不居中的解决方法

常用input文本框内容自动垂直居中并默认提示文字单击为空

html中table为每个单元格设置不同颜色和宽度

网站背景音乐实现方法

html中设置让div中的内容超出后自动显示滚动条

常见的HTML标记错误写法

设置table中的宽度不随文字改变让其固定

超链接图标规范:提升文章的可阅读性

表单文件选择框样式自定义示例

精品推荐
分类导航