[英]Stop word-wrap in html
I don't want word wrap but this is being.我不想要自动换行,但这就是存在。 I have set width more than text length but this is still breaking so how can I stop word break.我设置的宽度大于文本长度,但这仍然会中断,所以我该如何停止断字。
css css
.menu{
float:left;
width:120px;
height:34px;
padding:12px 6px 0 6px;
color:#cc8d50;
}
Try:尝试:
.menu{
white-space: nowrap;
...
Add that to your CSS.将其添加到您的 CSS 中。
在你的 css 中插入:
white-space:nowrap;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.