您好,欢迎访问一九零五行业门户网

如何在HTML中不允许在封闭文本中插入换行符?

使用 f44a345470ed5309298c118c07c6efac 标记可允许 html 中的封闭文本不出现中断。 html f44a345470ed5309298c118c07c6efac 标签用于指示浏览器不要破坏指定的文本。
这与 37fcc81822f151c26d66e5caf9953670 标签一起使用,37fcc81822f151c26d66e5caf9953670 会建议扩展浏览器何时可以在不可破坏的序列中插入换行符。文本。与 0c6dc11e160d3b678d68754cc175188a 标记不同,即使在 f44a345470ed5309298c118c07c6efac- 标记的段中,该标记也始终会导致换行,而 37fcc81822f151c26d66e5caf9953670 标记仅在放置在 f44a345470ed5309298c118c07c6efac- 标记的内容段内时才起作用,并且仅当当前行已经超出浏览器的范围时才会导致换行。显示窗口边距。
示例您可以尝试运行以下代码,以允许 html 中的封闭文本不出现中断 -
<!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中不允许在封闭文本中插入换行符?的详细内容。
其它类似信息

推荐信息