好的,这真让我感到困惑.我在div中有一些内容,如下所示:
<div style="background-color: green; width: 200px; height: 300px;">
Thisisatest.Thisisatest.Thisisatest.Thisisatest.Thisisatest.Thisisatest.
</div>
Run Code Online (Sandbox Code Playgroud)
但是,内容溢出了DIV(如预期的那样),因为'word'太长了.
如何强制浏览器在必要时"破坏"单词以适应所有内容?
我有一个长串(DNA序列).它不包含任何空格字符.例如:
ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA
Run Code Online (Sandbox Code Playgroud)
什么是css选择器强制将此文本包装在html:textarea或xul:textbox中