I found out that if we write inline css (or add it using JavaScript), we will lose the css hover value. Can this behavior be changed?
Simple example
<div id="test" style="color: red">test</div>
<style>
#test:hover {
color:blue;
}
</style>
In this case, the hang does not work.
Update
I can’t use it !important, because after it I can’t change this attribute using JavaScript.
I also generate styles dynamically, so I cannot add specific classes through JavaScript.
Simon source
share