Skip to content

Instantly share code, notes, and snippets.

@aileron
Created June 8, 2012 09:14
Show Gist options
  • Save aileron/2894649 to your computer and use it in GitHub Desktop.
Save aileron/2894649 to your computer and use it in GitHub Desktop.
backgroun-image にグラデを付ける方法
background-color: white;
background-image: url(bg.png);
background-image: url(bg.png), -webkit-gradient(linear, left top, right bottom, from(#000000), to(#ffffff));
background-image: url(bg.png), -moz-linear-gradient(-45deg, #000000, #ffffff);
background-attachment: fixed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment