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.
我有两个并排的div。问题是,当我在一个 div 中有长绑定文本时,它会溢出到第二个。这是一个例子:http: //jsfiddle.net/hjZ8F/1/
如何适应?
这是您的 jsFiddle 的工作版本:http: //jsfiddle.net/hjZ8F/2/
只需添加word-wrap: break-word;到长跨度的样式属性
word-wrap: break-word;