gpt4 book ai didi

html - 在有下划线的段落中如何排除一系列单词被下划线(文本修饰无)

转载 作者:太空宇宙 更新时间:2023-11-04 14:42:51 25 4
gpt4 key购买 nike

在 Zurb Foundation 4 中,我想在下面的所有文本下划线,除了“Shipping International”,我已经尝试将各种 css 设置为文本装饰“无”,但我似乎无法弄清楚要解析的正确 CSS这是:

<div class="row">

 <p class="buy-button"><a href="#" class="medium button buy">Add to cart</a></p><br>
<p class="small-font"><a href="#">usually leaves our warehouse in 1 business day.</a><br>
<a href="#">Available for Pick Up NYC</a> <br>
<span class="overview">Shipping: International</span> <a href="#">(See Terms &amp Conditions)</a> </p>
</div>

我做了一个类的跨度,但它没有用。

可以在这个 fiddle 中看到 HTML 和 CSS http://jsfiddle.net/setbon/f8p62/

非常感谢任何解决问题的帮助。

最佳答案

从您的 .small-font 样式中删除 text-decoration:underline;

这是完整的 CSS:

.medium.button.buy {
background-color: green;
/* margin-right: 0.5em;
margin-left: 0.5em;*/
padding-left: 4em;
padding-right: 4em;
}

.small-font {
font-size: 0.75em;
}

.panel p.buy-button {
margin-bottom: 0.1em;
}

还有 jsFiddle .

关于html - 在有下划线的段落中如何排除一系列单词被下划线(文本修饰无),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18138608/

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