练习题5_骰子.html 887 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. .face {
  9. float: left;
  10. margin: 16px;
  11. padding: 4px;
  12. background-color: #e7e7e7;
  13. width: 104px;
  14. height: 104px;
  15. box-shadow: inset 0 5px white, inset 0 -5px #bbb, inset 5px 0 #d7d7d7, inset -5px 0 #d7d7d7;
  16. border-radius: 10%;
  17. }
  18. .face span {
  19. display: block;
  20. width: 24px;
  21. height: 24px;
  22. border-radius: 50%;
  23. margin: 4px;
  24. background-color: #333;
  25. box-shadow: inset 0 3px #111, inset 0 -3px #555;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div class="face face1">
  31. <span></span>
  32. </div>
  33. </body>
  34. </html>