1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<html> <head> <style> div { width: 200px; height: 200px; background-color: blue; opacity: 0.95; position: absolute; } #second { width: 600px; height: 800px; background-color: green; } </style> </head> <body> <div id="first"> <div id="second"></div> </div> <div style="z-index:-2; top: 220px;"></div> <div style="top: 440px;"></div> </body> </html>