1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<!DOCTYPE HTML> <head> <style> .parent { width: 200px; height: 200px; isolation: isolate; } .child { width: 200px; height: 200px; background: green; } </style> </head> <body> <div class="parent"> <div class="child"> </div> </div> </body>