使用 CSS 設定反轉效果
反轉效果用於將物件的各種顏色對映到色譜中與之相反的值,即建立負像。
此濾鏡使用以下引數:
| 序號 | 引數 & 說明 |
|---|---|
| 1 | 反轉 將物件的顏色對映到色譜中與之相反的值。 |
示例
你可以嘗試執行以下程式碼來實現反轉效果
<html> <head> </head> <body> <img src = "/images/css.gif" alt = "CSS Logo" style = "Filter: invert" /> <p>Text Example:</p> <div style = "width: 357; height: 50; font-size: 30pt; font-family: Arial Black; color: red; Filter: invert"> CSS Tutorials </div> </body> </html>
廣告
資料結構
網路
關係資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP