简体   繁体   English

Bootstrap下拉菜单样式错误

[英]Bootstrap dropdown menu bad styling

I have a problem with styling a dropdown-menu in my website. 我在网站上设置下拉菜单样式时遇到问题。 When I open and close the menu and go away with mouse from the button, the button has bad style. 当我打开和关闭菜单并用鼠标离开按钮时,按钮的样式不好。 I searched all over the internet, but did not find a solution. 我在整个互联网上进行了搜索,但没有找到解决方案。

Normal page look like this: 普通页面如下所示:

普通页面

After double-click on button and go away with mouse page look like this: 双击按钮并离开鼠标页面后,如下所示:

双击按钮后的页面

I mean, this will repair some class in CSS, but I dont know which. 我的意思是,这将修复CSS中的某些类,但是我不知道哪个类。

Thanks for answer and sorry for my English. 感谢您的回答,对不起我的英语。 I am not from an English speaking country. 我不是来自英语国家。

Simply add this CSS so it won't become white anymore 只需添加此CSS,就不会再变白了

.nav > li > a:focus{
     background:transparent;   
}

Make sure you put it after the Bootstrap CSS 确保将其放在Bootstrap CSS之后

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM