使用
这与
标记不同,即使在
您可以尝试运行以下代码,以允许 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中不允许在封闭文本中插入换行符?的详细内容。更多信息请关注PHP中文网其他相关文章!