css is getting overridden by .js inserted styles (Alloy UI)
I have a situation where the .css in my head tag is getting overridden by 开发者_如何转开发css that's being inserted dynamically into the head by a javascript library.
The .js library automatically appends the new .css link to the end of the head tag so it is always put on top of my styles.
You have several options:
- Use a different JavaScript library
- Make sure all your rules have a higher specificity than the ones added by the library
- Learn about !important
精彩评论