nobr 不换行标签

示例代码:

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>nobr标签实例 www.divcss5.com</title> <style> ul{ border:1px solid #000; 200px;} li{ 200px; line-height:22px} </style> </head> <body> <ul> <li><nobr>第一排内容文字多加nobr标签测试内容</nobr></li> <li><nobr>第二排内容文字多加nobr标签不能排下</nobr></li> <li>第三排内容文字多没有加nobr标签</li> <li>第四排 文字少能排下</li> </ul> </body> </html>

以上,解决了一些样式上强制换行的问题。

引用链接

http://www.monmonkey.com/rumenpian/html/nobr.html

原文地址:https://www.cnblogs.com/mr-wuxiansheng/p/6705461.html