ASCII码 ASCII码

数字九宫格

发布于:2022-05-09 09:13:05  栏目:技术文档

<!DOCTYPE html>

<html lang="en">

<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>数字9官格</title> <style> .one{ width: 385px; height: 385px; margin: auto;

  1. }
  2. .one1 div{
  3. width: 100px;
  4. height: 100px;
  5. /* border: 1px solid #000; */
  6. float: left;
  7. }
  8. .one1_1{
  9. background-image: url('./img/aa.jpg');
  10. background-position: -11px -8px;
  11. }
  12. .one1_2{
  13. background-image: url('./img/aa.jpg');
  14. background-position: -121px -126px;
  15. }
  16. .one1_3{
  17. background-image: url('./img/aa.jpg');
  18. background-position: -231px -244px;
  19. }
  20. .one1_4{
  21. background-image: url('./img/aa.jpg');
  22. background-position: -341px -362px;
  23. }
  24. .one1_5{
  25. background-image: url('./img/aa.jpg');
  26. background-position: -451px -480px;
  27. }
  28. .one1_6{
  29. background-image: url('./img/aa.jpg');
  30. background-position: -561px -598px;
  31. }
  32. .one1_7{
  33. background-image: url('./img/aa.jpg');
  34. background-position: -671px -716px;
  35. }
  36. .one1_8{
  37. background-image: url('./img/aa.jpg');
  38. background-position: -781px -834px;
  39. }
  40. .one1_9{
  41. background-image: url('./img/aa.jpg');
  42. background-position: -892px -953px;
  43. }
  44. </style>

</head>

<body> <div class="one"> <div class="one1"> <div class="one1_1"></div> <div class="one1_2"></div> <div class="one1_3"></div> </div> <div class="one1"> <div class="one1_4"></div> <div class="one1_5"></div> <div class="one1_6"></div> </div> <div class="one1"> <div class="one1_7"></div> <div class="one1_8"></div> <div class="one1_9"></div> </div> </div></body></html>

相关推荐
阅读 +