练习8-伪元素.html 469 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <style>
  8. .box{
  9. border:3px solid black
  10. }
  11. .box .div1{
  12. width: 200px;
  13. height: 200px;
  14. background-color: blue;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="box">
  20. <div class="div1"></div>
  21. </div>
  22. </body>
  23. </html>