使用javascript获取CSS/browser强制新行
我有这样一段文字:使用javascript获取CSS/browser强制新行,javascript,html,css,Javascript,Html,Css,我有这样一段文字: <p>One day I went to the park and then ate the apple.</p> One day I went to the park and then ate the apple. 那么,我应该用哪个[转义]字符来获得虚线?如果这一行被一个标记打断,那么这很容易,但现在它不使用任何HTML标记来完成这一操作 <p>One day I went to the park and th
<p>One day I went to the park and then ate the apple.</p>
One day I went to the park
and then ate the apple.
那么,我应该用哪个[转义]字符来获得虚线?如果这一行被一个标记打断,那么这很容易,但现在它不使用任何HTML标记来完成这一操作
<p>One day I went to the park and then ate the apple.</p>
&n b s p;,当用于创建空间时,非线分隔空间会创建该行为 没有[escape]字符-浏览器只是换行。您是否只想确定文本的包装点?如果是这样的话,这个问题可能已经有很多答案了,例如@Alnitak,是的,我只要一点线断。断开该线,浏览器将换行。就这样。也就是说,调整不同视口上的字体大小以获得相同的布局。