index.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* nova-tourism/components/collect/index.wxss */
  2. .all{
  3. width: 100vw;
  4. overflow-y: scroll;
  5. .img{
  6. width: 100%;
  7. height: 430rpx;
  8. }
  9. .Legendary-Information{
  10. margin-top: 40rpx;
  11. width: 100%;
  12. background-color: white;
  13. overflow-y: hidden;
  14. padding-left: 3%;
  15. padding-right: 3%;
  16. padding-bottom: 40rpx;
  17. column-count: 2; /* 设置列数 */
  18. column-gap: 20rpx; /* 设置列间距 */
  19. .cardbox {
  20. break-inside: avoid; /* 防止卡片在列之间断裂 */
  21. margin-bottom: 20rpx; /* 设置卡片底部间距 */
  22. width: 100%; /* 确保卡片宽度为100% */
  23. background-color: #F9F9F9;
  24. .pic{
  25. width: 100%;
  26. height: 275rpx;
  27. }
  28. .textobx{
  29. width: 100%;
  30. height: 220rpx;
  31. padding-top: 10rpx;
  32. padding-left: 20rpx;
  33. padding-right: 20rpx;
  34. .title{
  35. width: 100%;
  36. height: 50rpx;
  37. display: flex;
  38. align-items: center;
  39. .til{
  40. font-size: 30rpx;
  41. font-weight: 600;
  42. }
  43. .collect{
  44. width: 50rpx;
  45. height: 50rpx;
  46. margin-left: auto;
  47. }
  48. }
  49. .miaosu{
  50. width: 100%;
  51. height: 80rpx; /* 设置固定高度 */
  52. font-size: 28rpx;
  53. overflow: hidden; /* 隐藏超出部分 */
  54. display: -webkit-box; /* 使用弹性盒子布局 */
  55. -webkit-box-orient: vertical; /* 垂直排列 */
  56. -webkit-line-clamp: 2; /* 限制显示的行数,这里设置为3行 */
  57. text-overflow: ellipsis; /* 超出部分显示省略号 */
  58. }
  59. .bottom{
  60. width: 100%;
  61. height: 80rpx;
  62. display: flex;
  63. align-items: center;
  64. .qian{
  65. color: #C5262Ced;
  66. display: flex;
  67. .numbox{
  68. margin-left: 6rpx;
  69. }
  70. }
  71. .soucang{
  72. width: 104rpx;
  73. height: 48rpx;
  74. font-size: 26rpx;
  75. background-color: #343027;
  76. border-radius: 40rpx;
  77. color: white;
  78. margin-left: auto;
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }