如何将Bootstrap手风琴按钮放在文本前并更改其样式?

huangapple go评论63阅读模式
英文:

How to put Bootstrap accordion button before text and change it's style?

问题

这是 Bootstrap 手风琴带有加号和减号的链接:https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=accordion-with-plus-minus-icon

如何将按钮放置在如下链接所示:https://ibb.co/GJRGKnn

此外,我想要将按钮的样式更改为如下链接所示:https://ibb.co/GPTGpp8

谢谢您!

英文:

Here is link for bootstrap accordion with plus and minuses: https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=accordion-with-plus-minus-icon
How to put buttons as shown in this link: https://ibb.co/GJRGKnn

Also I want to change button's style as shown in this link: https://ibb.co/GPTGpp8

Thank You!

答案1

得分: 1

请添加这个CSS并再次检查。

.accordion-button::after {
    position: absolute;
    left: 0;
}
英文:

Please add this css and check agian.

.accordion-button::after {
    position: absolute;
    left: 0;
}

huangapple
  • 本文由 发表于 2023年2月8日 10:51:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/75380964.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定