styles.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. body {
  2. background-color: #ffffff;
  3. font-family: Arial, sans-serif;
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. }
  8. .content-wrapper {
  9. padding: 10px 0px 10px 0px;
  10. border: 1px solid #ccc;
  11. border-radius: 8px;
  12. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  13. }
  14. .content-title {
  15. padding: 0px 20px 0px 20px;
  16. display: flex;
  17. flex-direction: row;
  18. justify-content: space-between;
  19. align-items: center;
  20. }
  21. .content-title a {
  22. text-decoration: none;
  23. color: #ff4081;
  24. font-weight: bold;
  25. }
  26. .content-title a:hover {
  27. transform: scale(1.1);
  28. }
  29. .content {
  30. margin-top: 20px;
  31. font-family: Arial, sans-serif;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. }
  36. .image-grid {
  37. display: grid;
  38. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  39. gap: 16px;
  40. width: 90%;
  41. }
  42. .image-grid img {
  43. width: 100%;
  44. height: auto;
  45. object-fit: contain;
  46. aspect-ratio: 1;
  47. display: block;
  48. cursor: pointer;
  49. border-radius: 8px; /* 可选,添加圆角效果 */
  50. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 可选,添加阴影效果 */
  51. }
  52. .album-grid {
  53. display: grid;
  54. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  55. gap: 16px;
  56. width: 90%;
  57. }
  58. .album-grid-card {
  59. width: 100%;
  60. height: auto;
  61. border: 1px solid #ccc;
  62. border-radius: 8px;
  63. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  64. }
  65. .album-grid-card img {
  66. width: 100%;
  67. height: auto;
  68. cursor: pointer;
  69. border-radius: 8px;
  70. }
  71. .album-icon-grid {
  72. display: grid;
  73. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  74. gap: 16px;
  75. width: 90%;
  76. }
  77. /* 响应式设计, 如果是手机屏幕 */
  78. @media (max-width: 768px) {
  79. .image-grid {
  80. width: 90%; /* 手机端宽度占90% */
  81. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  82. }
  83. .album-grid {
  84. width: 90%; /* 手机端宽度占90% */
  85. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  86. }
  87. .album-icon-grid {
  88. width: 90%; /* 手机端宽度占90% */
  89. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  90. }
  91. }