如何在HTML中不允许在封闭文本中插入换行符?
原创
使用
这与
标记不同,即使在
示例
您可以尝试运行以下代码,以允许 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中不允许在封闭文本中插入换行符?的详细内容,更多请关注IT视界其它相关文章!
上一篇:在HTML中创建强调文本 下一篇:匹配给定集合之外的任意单个字符