0

导航到客户页面,您应该会看到链接和电子邮件地址溢出其包含给定类“客户”的 div 标记 例如:

<div class="client">
<span class="delete">
<span class="name">
<span class="address">
<span class="municipal">
<span class="county">
<span class="phone">
<p class="email">
<span class="url">
<strong>www:</strong>
<a href="http://www.edjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjju.salford.ac.uk">
</span>
</div>

有没有办法阻止电子邮件和网站的 span 元素内的文本字符串离开 div 使其在下面的新行上连续运行?解决方案需要有序,以便页面可以通过 W3C 验证 CSS。

4

1 回答 1

2

像这样写:

a{
 word-wrap:break-word;
}
于 2012-05-13T15:51:05.403 回答