Remove a filter from a CSS file on an overriden CSS - HTML CSS CSS Property

HTML CSS examples for CSS Property:filter

Description

Remove a filter from a CSS file on an overriden CSS

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.someElement {<!--from   ww w  . j av  a  2 s. c o m-->
   filter:gray(enabled=true) alpha(opacity=51);
   -ms-filter:"gray(enabled=true) alpha(opacity=51)"
}

.someElement {
   filter:gray(enabled=false);
   -ms-filter:"gray(enabled=false)"
}
</style> 
 </head> 
 <body> 
  <img src="https://www.java2s.com/style/demo/InternetExplorer.png" class="someElement" width="300" height="200">  
 </body>
</html>

Related Tutorials