gpt4 book ai didi

css - 从可折叠的 Bootstrap 卡片中删除边框

转载 作者:行者123 更新时间:2023-11-28 14:18:11 24 4
gpt4 key购买 nike

我有一组卡片,通过我网站上的一个按钮显示。当我展示它们时,卡片(我试图显示的信息)周围有一个灰色小边框。我想删除此边框,但在我的 CSS 中设置 border: none; 并没有成功。

仅供引用:我正在使用 Bootstrap 4.3.1(通过 CDN)。

代码:

    <div id="skills" class="showcase-buttons">
<button type="button" class="btn btn-primary btn-block"
data-toggle="collapse" href="#skills-showcase" aria-expanded="false"
aria-controls="skills-showcase">
Skills
</button>

<!-- collapsible content (skills) -->
<div id="skills-showcase" class="collapse showcase-content justified-text">
<div class="row justify-content-around">
<div class="col-md-4">
<div id="computer-skills">
<div class="card card-body">
<h3>Computer</h3>
<p>
We'll put some happy little leaves here and there. If we're going to
have animals around we all have to be concerned about them and take
care of them. As trees get older they lose their chlorophyll. This
present moment is perfect simply due to the fact you're experiencing
it. Let's make some happy little clouds in our world.
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div id="design-skills">
<div class="card card-body">
<h3>Design</h3>
<p>
Put it in, leave it alone. Just let go - and fall like a little
waterfall. The more we do this - the more it will do good things to
our heart. Nature is so fantastic, enjoy it. Let it make you happy.
Trees grow in all kinds of ways. They're not all perfectly straight.
Not every limb is perfect. There are no limits in this world.
</p>
</div>
</div>
</div>
<div class="col-md-4">
<div id="problem-solving-skills">
<div class="card card-body">
<h3>Problem Solving</h3>
<p>
If these lines aren't straight, your water's going to run right out of
your painting and get your floor wet. And I will hypnotize that just a
little bit. You need the dark in order to show the light. We don't
really know where this goes - and I'm not sure we really care. I get
carried away with this brush cleaning.
</p>
</div>
</div>
</div>
</div>
</div>
</div>

图片: website example picture

最佳答案

可能是您的缓存没有被清除。如果没有,您可以试试这个,看看它是否有效:

.card {
border: 0;
}

或:

<div class="card border-0">...</div>

关于css - 从可折叠的 Bootstrap 卡片中删除边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55580350/

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