Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の HTML の一部は次のようになります。
もちろん、このテキストの一部を新しい行に移動したいと思います。<br>各行の後に置くことができますが、このような長いテキストではかなり面倒になる可能性があるため、より良い/簡単な方法があるかどうか疑問に思っていました. foreachこれか何かにa を使用できますか?
<br>
foreach
preテキストをタグに追加します。
pre
<pre> .. your text </pre>
br各行の後に追加する必要はありません。
br
これを使用できます
<p style="word-wrap: break-word;width:40px"> your content</p>