HTML <nobr>标签用于指示浏览器不要破坏指定的文本(例如,发生在浏览器窗口右边缘的常规换行符)。
它与<wbr>标签一起使用,<wbr>在扩展浏览器可能以其他方式不可中断的文本序列插入换行符时建议使用。
<!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 |
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)