product.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. height: 100%;
  32. }
  33. .product_item{
  34. width: 45%;
  35. margin: 10rpx 2.5%;
  36. position: relative;
  37. }
  38. .title{
  39. font-size: 35rpx;
  40. white-space: nowrap; /* 防止文本换行 */
  41. overflow: hidden; /* 隐藏超出容器的文本 */
  42. text-overflow: ellipsis; /* 显示省略号来表示文本被截断 */
  43. }
  44. .product_operate{
  45. background-color: rgb(230 230 230);
  46. width: 100%;
  47. height: 200rpx;
  48. position: absolute;
  49. top: 0;
  50. left: 0;
  51. }
  52. .cancel{
  53. height: auto;
  54. position: absolute;
  55. right: 10rpx;
  56. top: 5rpx;
  57. }
  58. .grids{
  59. background-color: rgb(230 230 230);
  60. height:180rpx;
  61. display: flex;
  62. justify-content: space-around;
  63. align-items: center;
  64. }
  65. .grid{
  66. /* height: 100%; */
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. }
  71. .line{
  72. width: 1px !important;
  73. height: 70rpx;
  74. background-color: rgb(113 109 133);
  75. float: right;
  76. }
  77. .operate_text{
  78. font-size: 20rpx;
  79. }
  80. .operate_icon{
  81. margin-bottom: 10rpx;
  82. }
  83. .foot{
  84. width: 100%;
  85. color: #969799;
  86. background-color: #f7f8fa;
  87. text-align: center;
  88. line-height:100rpx;
  89. }
  90. .myIconsangedian-type-1{
  91. font-size: 30rpx;
  92. }
  93. .menu{
  94. width: 100px;
  95. }
  96. .menu_item{
  97. font-size: 16px;
  98. text-align: center;
  99. padding: 5px 0;
  100. border-bottom: 1px solid #f2f2f2;
  101. }
  102. .menu_item:last-child{
  103. border-bottom:none;
  104. }