gpt4 book ai didi

CSS 错误跨度从 div 溢出

转载 作者:太空宇宙 更新时间:2023-11-04 05:05:23 26 4
gpt4 key购买 nike

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

<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。

最佳答案

这样写:

a{
word-wrap:break-word;
}

关于CSS 错误跨度从 div 溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10573061/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com