product.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /* myComponents/product/product.wxss */
  2. @import "/static/iconfont/iconfont.wxss";
  3. .swiper{
  4. height: 200rpx;
  5. }
  6. .slide-image {
  7. width: 100%;
  8. height: 100%;
  9. /* object-fit: cover; */
  10. background-size:contain; /* 图片覆盖整个容器,可能部分图片不可见 */
  11. background-position: center; /* 图片居中显示 */
  12. background-repeat: no-repeat; /* 图片不重复 */
  13. }
  14. .flex{
  15. width: 100%;
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. }
  20. .icon{
  21. display: flex;
  22. align-items: center;
  23. font-size: 45rpx;
  24. }
  25. .icon1{
  26. font-size: 39rpx;
  27. }
  28. .product_content{
  29. display: flex;
  30. flex-wrap: wrap;
  31. }
  32. .product_item{
  33. width: 45%;
  34. margin: 10rpx 2.5%;
  35. position: relative;
  36. }
  37. .title{
  38. font-size: 35rpx;
  39. white-space: nowrap; /* 防止文本换行 */
  40. overflow: hidden; /* 隐藏超出容器的文本 */
  41. text-overflow: ellipsis; /* 显示省略号来表示文本被截断 */
  42. }
  43. .product_operate{
  44. background-color: rgb(230 230 230);
  45. width: 100%;
  46. height: 200rpx;
  47. position: absolute;
  48. top: 0;
  49. left: 0;
  50. }
  51. .cancel{
  52. height: auto;
  53. position: absolute;
  54. right: 10rpx;
  55. top: 5rpx;
  56. }
  57. .grids{
  58. background-color: rgb(230 230 230);
  59. height:180rpx;
  60. display: flex;
  61. justify-content: space-around;
  62. align-items: center;
  63. }
  64. .grid{
  65. /* height: 100%; */
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. }
  70. .line{
  71. width: 1px !important;
  72. height: 70rpx;
  73. background-color: rgb(113 109 133);
  74. float: right;
  75. }
  76. .operate_text{
  77. font-size: 20rpx;
  78. }
  79. .operate_icon{
  80. margin-bottom: 10rpx;
  81. }
  82. .foot{
  83. width: 100%;
  84. color: #969799;
  85. background-color: #f7f8fa;
  86. text-align: center;
  87. line-height:100rpx;
  88. }
  89. .myIconsangedian-type-1{
  90. font-size: 30rpx;
  91. }
  92. .menu{
  93. width: 100px;
  94. }
  95. .menu_item{
  96. font-size: 16px;
  97. text-align: center;
  98. padding: 5px 0;
  99. border-bottom: 1px solid #f2f2f2;
  100. }
  101. .menu_item:last-child{
  102. border-bottom:none;
  103. }