简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <meta charset="utf-8"><link href="/static/next/css/tryit.css?v=2017082407" rel="stylesheet"/> <style> img { width: 33%; height: auto; float: left; max-width: 235px; } .blur {-webkit-filter: blur(4px);filter: blur(4px);} .brightness {-webkit-filter: brightness(250%);filter: brightness(250%);} .contrast {-webkit-filter: contrast(180%);filter: contrast(180%);} .grayscale {-webkit-filter: grayscale(100%);filter: grayscale(100%);} .huerotate {-webkit-filter: hue-rotate(180deg);filter: hue-rotate(180deg);} .invert {-webkit-filter: invert(100%);filter: invert(100%);} .opacity {-webkit-filter: opacity(50%);filter: opacity(50%);} .saturate {-webkit-filter: saturate(7); filter: saturate(7);} .sepia {-webkit-filter: sepia(100%);filter: sepia(100%);} .shadow {-webkit-filter: drop-shadow(8px 8px 10px green);filter: drop-shadow(8px 8px 10px green);} </style> <p><strong>注意:</strong> Internet Explorer <span lang="no-bok">或 Safari 5.1 (及更早版本)</span> 不支持该属性。</p> <div> <img src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="blur" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="brightness" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="contrast" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="grayscale" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="huerotate" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="invert" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="opacity" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="saturate" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="sepia" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> <img class="shadow" src="/static/i/css/pineapple.jpg" alt="Pineapple" width="300" height="300"> </div> <div style="clear:both"></div> <footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
运行结果: