实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css filter hue-rotate - 自学教程(runoops.com)</title> <style> img { -webkit-filter: hue-rotate(90deg); /* Chrome, Safari, Opera */ filter: hue-rotate(90deg); } </style> </head> <body> <p>给图像应用色相旋转:</p> <img src="//demo.runoops.com/static/img/pineapple.jpg" alt="Pineapple" width="300" height="300"> <p><strong>注意:</strong> Internet Explorer 不支持 filter 属性。</p> </body> </html>
运行结果: