0

For my thesis I have to make a website using the Bootstrap 5 framework, so I've been messing around with "Bootstrap Cards". When I click on a card a border appears. Thought I might fix it overwriting it using the pseudo element :focus

.card:focus {outline: 0 !important;

E.g.:

enter image description here

I guess it's something else then an outline, but don't have the needed knowledge of HTML

Thanks already, Luk Ramon

4

2 回答 2

1

检查.card类有一个border

要删除它,只需将其覆盖为border: none;

于 2021-02-17T09:37:43.887 回答
0

尝试使用此代码:

.card:focus {
   border: none !important;
}

看看能不能解决问题

于 2021-02-17T11:24:33.080 回答