lizongbo 的编程学习

编程学习 java为主的web应用开发

  DonewsBlog  |  Donews首页  |  Donews社区  |  Donews邮箱  |  我的首页  |  联系作者  |  聚合   |  登录
  75篇文章 :: 0篇收藏:: 35篇评论:: 2个Trackbacks

公告

lizongbo的blog


文章

收藏

相册

常用网址

存档


正在读取评论……


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'>
 
参考: http://www.delphibbs.com/delphibbs/dispq.asp?lid=1004292
 
css20.chm::/css20/c_wordwrap.html
 
css20.chm::/css20/c_tablelayout.html
 
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不支持:


Trackback: http://tb.donews.net/TrackBack.aspx?PostId=416697


[点击此处收藏本文]  发表于2005年06月07日 11:29 PM




正在读取评论……

发表评论

大名:
网址:
验证码
评论