这是包含电子邮件和复选框单元格的表.但我怎么能禁用文本包装?
代码有点像:
<table>
<tr>
<td>
<input type="checkbox" />
<td>
Dmitry soloviev (SolDmitr@mail.com)
</tr>
...........
</table>
Run Code Online (Sandbox Code Playgroud)
bal*_*dre 58
你应该添加一些类......
<table class="tbl-emails">
Run Code Online (Sandbox Code Playgroud)
然后
.tbl-emails td { white-space: nowrap; }
Run Code Online (Sandbox Code Playgroud)
white-space属性允许您阻止文本换行,直到您
在文本中放置一个中断.
p { white-space: nowrap; }
Run Code Online (Sandbox Code Playgroud)