CSS3对角渐变
对角线从左上方和右上方的按钮开始。您可以尝试运行以下代码以在CSS3中实现对角渐变-
<html> <head> <style> #grad1 { height: 100px; background: -webkit-linear-gradient(left top, red , blue); background: -o-linear-gradient(bottom right, red, blue); background: -moz-linear-gradient(bottom right, red, blue); background: linear-gradient(to bottom right, red , blue); } </style> </head> <body> <div id = "grad1"></div> </body> </html>