Loading...

使用CSS讓整個網頁由彩色變黑白色!

Temperature: 0 °C

Mark ChangMark Chang
author_tools

使用CSS讓整個網頁由彩色變黑白色!
把下面的語法加入網頁的<head>與</head>之間:
html {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
_filter:none;
}

就可以讓網站變成黑白
 
https://innstory.com/story-使用CSS讓整個網頁由彩色變黑白色!-1581

Prev
 分享_紓壓小物熱熔槍3D筆_|_鄭永銘老師的Blog

Next
使用CSS讓Youtube自動適應寬度跟高度 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

如何將mysql table auto_increment重設

如何將mysql table auto_increment重設

photo 資料表裡的資料加加減減,一不小心突然驚覺當初的欄位長度設定的不夠⊙⊙ 當然...

讓文字左右對齊

讓文字左右對齊

讓文字左右對齊這類的設計案,通常都會出現在平面設計居多。 網頁上很少會遇到客戶會執著於...

RPO(Relative Path Overwrite)相對路徑覆蓋攻擊

RPO(Relative Path Overwrite)相對路徑覆蓋攻擊

首先,先來用例子說明何謂「相對路徑」何謂「絕對路徑」。 例如你有一個網址為http:/...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format