问题
I wanted to override bootstrap default styles on a particular element ,but instead of using important property ,is there any way to do that , sometimes the !important property don't work , i was creating bootstrap form but when i tried to give width to any form control then it didn't apply why ?
回答1:
I think you should work with the CSS priorities.
There is a similar topic where you can find helpful info about it Here: best way to override bootstrap css
Additionally, in the following link there is a sample about specificity were you should try in your code to target the elements you need to change Here: CSS class priorities
If possible share some samples of your code where you have issues.
来源:https://stackoverflow.com/questions/47243076/how-can-i-override-bootstrap-classes