随笔分类 -  XHTML

DOM AND XHTML
关于td的固定宽度和强制不换行的问题
摘要:1.我使用的方法是在td中加入nowrap='nowrap' 2.其他方法:1. table 的style里加 table-layout:fixed (好像有时不需要)2. td的style里加white-space:nowrap;overflow:hidden;word-break:break-all; 用来防止换行3. 然后在td里加一个divdiv style=”width:350px;overflow:hidden;” nowrap…/div(信息来自:http://devblog.ns-soft.com/index.php/p/91/)在css中控制强制换行或不换行的写法为:语 阅读全文

posted @ 2010-12-07 12:25 tneduts 阅读(1191) 评论(0) 推荐(0)

button and input button
摘要:以前一直用的是<input type="button"> 今天注意到了<button type="button"><button> 标签定义一个按钮。在 button 元素内部,您可以放置内容,比如文本或图像。这是该元素与使用 input 元素创建的按钮之间的不同之处。<button> 控件 与 <input type="button">... 阅读全文

posted @ 2010-07-08 19:50 tneduts 阅读(248) 评论(0) 推荐(0)

导航