<nobr> 标签设置不换行
例子:
<nobr>我不换行,不换行,不换行,</nobr>
但是好像说html 5 中取消了 nobr
但是还可以在css 中 可以使用 CSS 的 white-space: nowrap 来代替
<span style="white-space: nowrap;" >html 5 中我也不换行,我也不换行,我也不换行html 5 中我也不换行,我也不换行,我也不换行html 5 中我也不换行,我也不换行,也不换行tml 5 中我也不换行,我也不换行,我也不换行</span>
表单单元格中可以直接设置nowrap 属性
<table><tr><td nowrap >我不换行,不换行,不换行</td><td></table>
还有一个设置 设置宽度后不换行,超过隐藏
<table style="table-layout:fixed;overflow:hidden;" width=60 ><tr> <td> <div>abcdefghABCDEFGH1234567890abcdefghABCDEFGH1234567890</div> </td> </tr></table>