示例代码:

<!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; width:200px;} li{ width: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

 

相关文章:

  • 2021-10-13
  • 2021-09-16
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案