相关疑难解决方法(0)

如何在DIV中的loooooong单词中强制换行?

好的,这真让我感到困惑.我在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'太长了.

如何强制浏览器在必要时"破坏"单词以适应所有内容?

html css line-breaks

395
推荐指数
10
解决办法
37万
查看次数

CSS:如何强制将长字符串(没有任何空白)强制包装在XUL和/或HTML中

我有一个长串(DNA序列).它不包含任何空格字符.例如:

ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA
Run Code Online (Sandbox Code Playgroud)

什么是css选择器强制将此文本包装在html:textarea或xul:textbox中

html css string xul word-wrap

183
推荐指数
8
解决办法
14万
查看次数

标签 统计

css ×2

html ×2

line-breaks ×1

string ×1

word-wrap ×1

xul ×1