CSS3濾鏡!!!,css3濾鏡

來源:互聯網
上載者:User

CSS3濾鏡!!!,css3濾鏡

 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 img { 6     width: 33%; 7     height: auto; 8     float: left;  9     max-width: 235px;10 }11 12 .blur {-webkit-filter: blur(4px);filter: blur(4px);}13 .brightness {-webkit-filter: brightness(250%);filter: brightness(250%);}14 .contrast {-webkit-filter: contrast(180%);filter: contrast(180%);}15 .grayscale {-webkit-filter: grayscale(100%);filter: grayscale(100%);}16 .huerotate {-webkit-filter: hue-rotate(180deg);filter: hue-rotate(180deg);}17 .invert {-webkit-filter: invert(100%);filter: invert(100%);}18 .opacity {-webkit-filter: opacity(50%);filter: opacity(50%);}19 .saturate {-webkit-filter: saturate(7); filter: saturate(7);}20 .sepia {-webkit-filter: sepia(100%);filter: sepia(100%);}21 .shadow {-webkit-filter: drop-shadow(8px 8px 10px green);filter: drop-shadow(8px 8px 10px green);}22 </style>23 </head>24 <body>25 26 <p><strong>注意:</strong> Internet Explorer <span lang="no-bok">或 Safari 5.1 (及更早版本)</span> 不支援該屬性。</p>27 28 <img src="pineapple.jpg" alt="Pineapple" width="300" height="300">29 <img class="blur" src="pineapple.jpg" alt="Pineapple" width="300" height="300">30 <img class="brightness" src="pineapple.jpg" alt="Pineapple" width="300" height="300">31 <img class="contrast" src="pineapple.jpg" alt="Pineapple" width="300" height="300">32 <img class="grayscale" src="pineapple.jpg" alt="Pineapple" width="300" height="300">33 <img class="huerotate" src="pineapple.jpg" alt="Pineapple" width="300" height="300">34 <img class="invert" src="pineapple.jpg" alt="Pineapple" width="300" height="300">35 <img class="opacity" src="pineapple.jpg" alt="Pineapple" width="300" height="300">36 <img class="saturate" src="pineapple.jpg" alt="Pineapple" width="300" height="300">37 <img class="sepia" src="pineapple.jpg" alt="Pineapple" width="300" height="300">38 <img class="shadow" src="pineapple.jpg" alt="Pineapple" width="300" height="300">39 40 </body>41 </html>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.