tab1.page.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .carousel-container {
  2. position: relative;
  3. width: 100%;
  4. max-width: 600px;
  5. overflow: hidden;
  6. }
  7. .carousel {
  8. display: flex;
  9. transition: transform 0.5s ease-in-out;
  10. }
  11. .slide {
  12. min-width: 100%;
  13. box-sizing: border-box;
  14. }
  15. .carousel-image {
  16. width: 100%;
  17. border-radius: 10px;
  18. object-fit: cover;
  19. }
  20. .prev, .next {
  21. position: absolute;
  22. top: 50%;
  23. transform: translateY(-50%);
  24. background-color: rgba(0, 0, 0, 0.5);
  25. color: white;
  26. border: none;
  27. font-size: 30px;
  28. padding: 10px;
  29. cursor: pointer;
  30. }
  31. .prev {
  32. left: 10px;
  33. }
  34. .next {
  35. right: 10px;
  36. }
  37. .dots {
  38. position: absolute;
  39. bottom: 10px;
  40. left: 50%;
  41. transform: translateX(-50%);
  42. display: flex;
  43. }
  44. .dot {
  45. height: 10px;
  46. width: 10px;
  47. margin: 0 5px;
  48. background-color: rgba(255, 255, 255, 0.7);
  49. border-radius: 50%;
  50. cursor: pointer;
  51. transition: background-color 0.3s;
  52. }
  53. .dot.active {
  54. background-color: white;
  55. }
  56. /* 查看详情按钮样式 */
  57. .view-detail-button {
  58. background-color: #1e88e5; /* 按钮背景色 */
  59. color: white; /* 按钮文字颜色 */
  60. border: none; /* 去掉边框 */
  61. border-radius: 5px; /* 圆角 */
  62. padding: 10px; /* 内边距 */
  63. font-size: 16px; /* 字体大小 */
  64. cursor: pointer; /* 鼠标指针样式 */
  65. transition: background-color 0.3s; /* 背景色变化效果 */
  66. width: 100%; /* 按钮宽度 */
  67. }
  68. .view-detail-button:hover {
  69. background-color: #1565c0; /* 悬停时背景色 */
  70. }
  71. .view-detail-button:focus {
  72. outline: none; /* 去掉聚焦时的轮廓 */
  73. }