16_margin.html 589 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. /* 通配符 选中所有标签 */
  10. *{
  11. margin:0;
  12. padding: 0;
  13. }
  14. div{
  15. height: 200px;
  16. background: #f000f0;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div>
  22. </div>
  23. <ul>
  24. <li>111</li>
  25. <li>111</li>
  26. </ul>
  27. </body>
  28. </html>