gpt4 book ai didi

jquery - CSS :after not working properly in FireFox

转载 作者:行者123 更新时间:2023-12-01 07:09:10 27 4
gpt4 key购买 nike

我知道这个问题之前已经被问过,但建议的 workaround在 Firefox 中无法正常工作,尽管在 Chrome 和 IE 中同样可以完美工作。 “+”和“-”符号似乎落在标题下方,理想情况下应该位于标题顶部的中间。下面是 fiddle :

http://jsfiddle.net/7tg188u5/1/

#accordion [aria-selected="false"] .panel-title a:after{
font-family: 'Glyphicons Halflings';
content: "\2b";
float: right;
color: red !important;
font-size: 1em; line-height: 1.5em;
position: relative;
display:inline-block;
}
#accordion [aria-selected="true"] .panel-title a:after{
font-family: 'Glyphicons Halflings';
content: "\2212";
float: right;
color: red !important;
font-size: 1em; line-height: 1.5em;
position: relative;
display:inline-block;
}

enter image description here

最佳答案

#accordion .panel-heading .panel-title {
position: relative; /* <<< New rule */
}
#accordion [aria-selected="false"] .panel-title a:after{
font-family: 'Glyphicons Halflings';
content: "\2b";
float: right;
color: red !important;
font-size: 1em; line-height: 1.5em;
position: absolute; /* <<< New rule */
right: 0; top: 0; /* <<< New rule */
display:inline-block;
}
#accordion [aria-selected="true"] .panel-title a:after{
font-family: 'Glyphicons Halflings';
content: "\2212";
float: right;
color: red !important;
font-size: 1em; line-height: 1.5em;
position: absolute; /* <<< New rule */
right: 0; top: 0; /* <<< New rule */
display:inline-block;
}

请注意上面指示调整行的注释,这是正确使用您链接的“解决方法”。您最有可能需要调整右侧/行高,因为这确实将它们紧缩在 Angular 落里,但这应该可以正常工作。

关于jquery - CSS :after not working properly in FireFox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31932449/

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