Last active
October 14, 2016 08:28
-
-
Save thaiall/d4fea62b72d8ab026896d6142c0b4b6d to your computer and use it in GitHub Desktop.
พบการแชร์ CSS code สำหรับเปลี่ยน webpage เพื่อไว้ทุกข์ ดังนั้นหากท่านใด ต้องการใส่ตัวกรองให้กับ webpage ให้เป็นสีขาวดำ (if you want to use filter to change webpage for grayscale mode) ทำได้โดยเพิ่ม code ของ CSS (Cascading Style Sheets) เข้าไปใน webpage ซึ่งแต่ละ browser อาจยอมรับคำสั่งแตกต่างกันไป ซึ่งคำสั่งสำคัญ คือ filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
* { | |
-moz-filter:grayscale(100%); /* firefox */ | |
-webkit-filter:grayscale(100%); /* safari, chrome */ | |
filter:gray; /* IE6-9 */ | |
filter:grayscale(100%); | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment