[英]ng-bootstrap accordion title no underline on hover-effect
我在我的angular4应用程序中使用ngb手风琴。 一架手风琴应始终打开。 我唯一的问题是我无法删除悬停时的下划线。 这是我的html代码:
<template ngbPanelTitle>
<span class="no-hover-and-no-cursor-effect">Version</span>
</template>
这是我的CSS代码:
.no-hover-and-no-cursor-effect:hover {
cursor: default;
color: #0275d8;
text-decoration: none;
}
颜色有效,它保持不变。 光标也可以使用,但是标题仍带有下划线...
只需将以下代码添加到CSS
a.accordion-toggle{
text-decoration: none !important;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.