tab2.page.scss 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .image-container {
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. width: 100%;
  6. padding: 20px 0;
  7. .photo-section {
  8. width: 100%;
  9. text-align: center;
  10. margin-bottom: 20px;
  11. position: relative;
  12. .time-display {
  13. position: relative;
  14. font-size: 16px;
  15. color: #fff;
  16. background-color: rgba(0, 0, 0, 0.5);
  17. padding: 5px 10px;
  18. border-radius: 5px;
  19. margin-bottom: 10px;
  20. }
  21. ion-card {
  22. width: 100%; /* 每张照片占据整行 */
  23. max-width: 300px; /* 最大宽度 */
  24. margin: 0 auto; /* 居中显示 */
  25. }
  26. ion-card ion-img {
  27. width: 100%;
  28. height: auto;
  29. object-fit: cover;
  30. }
  31. }
  32. .top-image {
  33. width: 100%;
  34. height: auto;
  35. object-fit: cover;
  36. margin-bottom: 10px;
  37. }
  38. }