1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<!DOCTYPE HTML> <html> <head> <style> div { width: 260px; height: 260px; background-size: 100px 100px; background-position: -20px -20px; background-image: linear-gradient(to bottom right, yellow, blue); } </style> </head> <body> <div></div> </body> </html>