简体   繁体   中英

How can I remove a Bootstrap CSS styling for a specific element?

I'm making a website about Vanilla World of Warcraft using Bootstrap. To get the items tooltips to work, I'm using this resource from db.vanillagaming.org :

<script type="text/javascript" src="http://db.vanillagaming.org/templates/wowhead/js/power.js"></script>

I tested it, and it didn't work. After some searching I've noticed that if I removed bootstrap.min.css it works. Some CSS styling of Bootstrap is removing the ability to show the items tooltips.

So, my question is how can I remove the Bootstrap CSS styling of a specific element? In this case an a element.

<a href="http://db.vanillagaming.org/?spell=20150">Shield Specialization</a>

Here is a example: http://codepen.io/diogocapela/pen/QGxLYj

As Bootstrap and db.vanillagaming.org both have some styles for class .tooltip they override each other. To make it work, You can add one fix : make .tooltip visible .tooltip { opacity : 1; } .tooltip { opacity : 1; } should fix your problem.

http://codepen.io/anon/pen/JbZjjZ

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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