css - Scss - 禁用点击边框

标签 css sass

我正在使用 ngb-Bootstrap 创建轮播,但我遇到了边框问题。当我单击轮播按钮或轮播中的任何位置时,我都会遇到这样的情况:

enter image description here

我不想在外面显示这个边框。我试图删除事件或焦点上的边框,但没有任何效果。

.imageCarousel {
        max-height: 500px;
        text-align: center;
        color: $color2;

        user-select: none;


        img {
            max-width: 80%;
            max-height: 280px;

        }
        .carousel-indicators {
            color: $color2;
        }
    }

最佳答案

*:focus {
    outline: none;
}

或者您可以使用更具体的 CSS 类(例如 .imageCarousel)。

关于css - Scss - 禁用点击边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49432652/

相关文章:

javascript - 使用 Jquery 制作动画后需要重置原始样式吗?

css - HTML/CSS 之谜?不知道在哪里调出尺寸

html - 正确设置网格布局

javascript - 在 Angular 中设置 Angular Web 组件的样式

css - rem 不尊重智能手机上的用户设置

javascript - css 和 js 无法在 Rails 生产模式下工作

html - 在 firefox、chrome 中处理像 css 这样的 jsp 的问题

css - 如何在 React Navigation 6 的标题中输入全 Angular 文本?

css - 在 webpack 中使用本地网络字体

css - Sass BEM Mixin 子组件