background-blending-background-attachement-fixed-scroll-ref.html 415 B

1234567891011121314151617181920212223
  1. <!-- Blend two background images having background-attachment: fixed and scroll respectively -->
  2. <!DOCTYPE HTML>
  3. <html>
  4. <head>
  5. <style>
  6. div {
  7. width: 200px;
  8. height: 200px;
  9. background: url('as-image/black100x100.png'), url('as-image/green100x100.png');
  10. background-size: 100px 100px, 200px 100px;
  11. background-repeat: no-repeat;
  12. }
  13. body {
  14. margin: 0px;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div></div>
  20. </body>
  21. </html>