单元格(td)文本必须在1行中 [英] cell(td) text must be in 1 line

查看:92
本文介绍了单元格(td)文本必须在1行中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建具有1行文本的单元格

当文本包含两个或多个单词时会发生这种情况

How can I create a cell that has text with 1 line

This happens when the text contains two or more words

Sample
Sample



输出必须为



The output must be

Sample Sample



我尝试使用div但发生了同样的事情.



I try using div but same happend.

推荐答案

您可以将单元格设置为不使用CSS换行,例如:white-space: nowrap;
You could set the cell to not wrap with css as: white-space: nowrap;


查看 nowrap [

这篇关于单元格(td)文本必须在1行中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆