index.html 1.3 KB

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. </head>
  9. <body>
  10. <div id="container" style="width: 100px; display:flex; flex-direction:column;">
  11. <div class="red"
  12. style="background-color:red;width: 100%;height: 100px;border: 2px solid black; border-radius: 50%;">
  13. </div>
  14. <div class="yellow"
  15. style="background-color:yellow;width: 100%;height: 100px;border: 2px solid black; border-radius: 50%;">
  16. </div>
  17. <div class="green"
  18. style="background-color:green;width: 100%;height: 100px;border: 2px solid black; border-radius: 50%;">
  19. </div>
  20. </div>
  21. <button class="btn">клик</button>
  22. <div id="container1" style="width: 100px; display:flex; flex-direction:column;">
  23. <div class="red1"
  24. style="background-color:red;width: 100%;height: 100px;border: 2px solid black; border-radius: 50%;">
  25. </div>
  26. <div class="green1"
  27. style="background-color:green;width: 100%;height: 100px;border: 2px solid black; border-radius: 50%;">
  28. </div>
  29. <button class="btn1">перейти дорогу</button>
  30. </div>
  31. <script src="main.js"></script>
  32. </body>
  33. </html>