使用
這與
標記不同,即使在
您可以嘗試執行下列程式碼,以允許 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中文網其他相關文章!