关于换行的CSS
2006-04-03 16:52
1466 查看
1。使用 WORD-WRAP: break-word样式来进行自适应换行。
例如:
div { word-wrap: break-word; word-break: break-all; }
<xmp style="WORD-WRAP: break-word;word-break: break-all;"></xmp>
其中表格换行
<table style='table-layout:fixed'>
2.禁止输入法,这样就可以限制不能够输入汉字
<input type=text style="ime-mode: disabled ; ">
3.表格单元内容为空时也需要显示边框.
<table border=1 style="border-collapse: collapse; " bordercolor=red>
<tr>
<td>lizongbo</td><td>lizongbo</td>
</tr>
<tr>
<td><!--注意这里内容为空,--></td><td>lizongbo</td>
</tr>
<tr>
<td>lizongbo</td><td>lizongbo</td>
</tr>
</table>
“empty-cells: hide;”这个设置并不能够产生效果,因为ie不支持:
例如:
div { word-wrap: break-word; word-break: break-all; }
<xmp style="WORD-WRAP: break-word;word-break: break-all;"></xmp>
其中表格换行
<table style='table-layout:fixed'>
2.禁止输入法,这样就可以限制不能够输入汉字
<input type=text style="ime-mode: disabled ; ">
3.表格单元内容为空时也需要显示边框.
<table border=1 style="border-collapse: collapse; " bordercolor=red>
<tr>
<td>lizongbo</td><td>lizongbo</td>
</tr>
<tr>
<td><!--注意这里内容为空,--></td><td>lizongbo</td>
</tr>
<tr>
<td>lizongbo</td><td>lizongbo</td>
</tr>
</table>
“empty-cells: hide;”这个设置并不能够产生效果,因为ie不支持:
相关文章推荐
- 关于CSS控制TD换行与否的问题解决
- CSS-关于换行问题
- (笔记)关于CSS一个样式display:block;的换行问题()
- css关于float:right使用及靠右换行的解决办法
- CSS-关于换行问题
- 关于CSS控制TD换行与否的问题解决
- 关于CSS文字自动换行的总结
- xhtml+css探讨关于换行空格的问题
- css不换行,换行,强制换行
- 小细节:css文件的导入,关于link type="textcss"的解析
- css强行换行,解决无空格连续字符导致样式变形问题
- td自动换行CSS
- 关于CSS3文本换行的方法
- css如何实现数字换行效果
- 关于数学公式输入中括号的换行问题 的两种常用方法
- 关于CI框架引入CSS与JS文件
- 关于.net 页面提交后 css失效或者部分失效的问题
- css控制div强制换行
- css自动换行