Skip to content

Instantly share code, notes, and snippets.

@jzwang-dev
Created February 9, 2021 12:02
Show Gist options
  • Save jzwang-dev/88966b5439f7574697045e572e2570fc to your computer and use it in GitHub Desktop.
Save jzwang-dev/88966b5439f7574697045e572e2570fc to your computer and use it in GitHub Desktop.
linear gradient diagonal
table.diagonal th.top-left {
background: linear-gradient(to top right, /*漸層色的方向,應與要繪製的對角線相交*/
#f3f3f3 49.5%, /*表頭的背景顏色*/
#cccccc 49.5%, #cccccc 50.5%, /*對角線的線段顏色*/
#f3f3f3 50.5%); /*表頭的背景顏色*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment