[英]How can I remove the bottom border with CSS?
I'm using bootstrap and I have adapted the accordion to a table, it works perfectly except the icon when "toggled open" display a border-bottom which I would like to remove.我正在使用引导程序,并且我已经将手风琴改编成一张桌子,它工作得很好,除了“切换打开”时的图标显示我想删除的边框底部。 It is probably something inherit somewhere but I cannot figure it out.这可能是某处继承的东西,但我无法弄清楚。
When collapsed it works fine:折叠时它工作正常:
Here is the table code:这是表格代码:
<!-- language: lang-css -->
.accordion-line-button {
padding: 0;
width: auto;
border: none;
}
<!-- language: lang-html -->
<table class="accordion" id="accordionExample">
<tr class="accordion-item">
<td class="accordion-header" id="heading1">
<button class="accordion-button accordion-line-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse1" aria-expanded="true" aria-controls="collapse1"></button>
</td>
<td class="accord">
Question
</td>
</tr>
<tr>
<td colspan="2" class="accordion-collapse collapse" id="collapse1" aria-labelledby="heading1" data-bs-parent="#accordionExample">
<div class="accordion-body">Answer
</div>
</td>
</tr>
</table>
Here a link to the bin .这里是bin的链接。 I'm using a template which I've included and it is the problem, there is something that is inheriting that I cannot figure it out.我正在使用我包含的模板,这是问题所在,有些东西正在继承,我无法弄清楚。
Thanks for the help谢谢您的帮助
It's not a border property but rather box-shadow that is set on the button.它不是边框属性,而是设置在按钮上的 box-shadow。 Kindly use below code.请使用以下代码。
.accordion-line-button {
box-shadow: none !important;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.