Skip to content

Instantly share code, notes, and snippets.

@thaiall
Last active October 14, 2016 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thaiall/d4fea62b72d8ab026896d6142c0b4b6d to your computer and use it in GitHub Desktop.
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
<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