HTML 中的 <nobr>属性

首页 / HTML入门教程 / HTML 中的 <nobr>属性

HTML <nobr>标签用于指示浏览器不要破坏指定的文本(例如,发生在浏览器窗口右边缘的常规换行符)。

它与<wbr>标签一起使用,<wbr>在扩展浏览器可能以其他方式不可中断的文本序列插入换行符时建议使用。

nobr示例

<!DOCTYPE html>
<html>

   <head>
      <title>HTML nobr Tag</title>
   </head>

   <body>
      <nobr>This is a very long sequence of text that is forced to be 
      on a single line, even if doing so causes <wbr />
      
      the browser to extend the document window beyond the size of the 
      viewing pane and the poor user must scroll right <wbr />
      
      to read the entire line.
      </nobr>
   </body>

</html>

全局属性

此标签支持 HTML中描述的所有全局属性。

浏览器支持

此标签仅在Netscape 4和更高版本中可用。

无涯教程网

Chrome Firefox IE Opera Safari Android
No No No No No No

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

深入浅出gRPC -〔李林锋〕

程序员进阶攻略 -〔胡峰〕

深入浅出云计算 -〔何恺铎〕

Kafka核心源码解读 -〔胡夕〕

爆款文案修炼手册 -〔乐剑峰〕

反爬虫兵法演绎20讲 -〔DS Hunter〕

说透元宇宙 -〔方军〕

大厂设计进阶实战课 -〔小乔〕

Midjourney入门实践课 -〔Jovi〕

好记忆不如烂笔头。留下您的足迹吧 :)