练习8_习题解析.html 575 B

123456789101112131415161718192021222324252627282930313233343536
  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. .box2 {
  9. color: blue;
  10. }
  11. .box1 {
  12. color: red;
  13. }
  14. .box4 {
  15. color: yellow;
  16. }
  17. .box3 {
  18. color: green;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <!-- <div class=" box1 box2"> hello world </div> -->
  24. <div class="box3">
  25. <div class="box4">你好世界</div>
  26. </div>
  27. </body>
  28. </html>