`

css图片变灰.html

阅读更多

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <style>
	img {
		filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 3.5+ */
		filter: grey; -moz-opacity:.4;opacity:0.4;; /* IE6-9 */
		-webkit-filter: grayscale(80%); /* Chrome 19+ & Safari 6+ */
	}
  </style>
 </head>

 <body>
	<img src="20130805144335.jpg">
 </body>
</html>

  

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics