若網站需要短暫呈現灰階或黑白風格,可使用 filter。
body { filter: gray; }
body { filter: grayscale(100%); }
這類效果常用於特殊主題、悼念頁面或視覺風格轉換。