| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- body {
- background-color: #ffffff;
- font-family: Arial, sans-serif;
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- .content-wrapper {
- padding: 10px 0px 10px 0px;
- border: 1px solid #ccc;
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
- .content-title {
- padding: 0px 20px 0px 20px;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .content-title a {
- text-decoration: none;
- color: #ff4081;
- font-weight: bold;
- }
- .content-title a:hover {
- transform: scale(1.1);
- }
- .content {
- margin-top: 20px;
- font-family: Arial, sans-serif;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .image-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
- gap: 16px;
- width: 90%;
- }
- .image-grid img {
- width: 100%;
- height: auto;
- aspect-ratio: 1;
- display: block;
- cursor: pointer;
- border-radius: 8px; /* 可选,添加圆角效果 */
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 可选,添加阴影效果 */
- }
- .album-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: 16px;
- width: 90%;
- }
- .album-grid-card {
- width: 100%;
- height: auto;
- border: 1px solid #ccc;
- border-radius: 8px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- }
- .album-grid-card img {
- width: 100%;
- height: auto;
- cursor: pointer;
- border-radius: 8px;
- }
- .album-icon-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
- gap: 16px;
- width: 90%;
- }
- /* 响应式设计, 如果是手机屏幕 */
- @media (max-width: 768px) {
- .image-grid {
- width: 90%; /* 手机端宽度占90% */
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
- }
-
- .album-grid {
- width: 90%; /* 手机端宽度占90% */
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
- }
- .album-icon-grid {
- width: 90%; /* 手机端宽度占90% */
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
- }
- }
|