liuyan.wxss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* pages/index/index.wxss */
  2. .container{
  3. min-height: 100%;
  4. background:#f2f2f2;
  5. }
  6. .swiper{
  7. width:750rpx;
  8. height:400rpx
  9. }
  10. .swiper-item image{
  11. width:100%;
  12. height:400rpx
  13. }
  14. .title-container{
  15. background:#fff;
  16. text-align: center;
  17. margin-top:24rpx;
  18. padding:12rpx 0;
  19. }
  20. .title-container .title1{
  21. font-size:44rpx;
  22. color:#e64340;
  23. }
  24. .title-container .title2{
  25. font-size:36rpx;
  26. color:#6e6d6b;
  27. margin-top:12rpx;
  28. }
  29. .goods-container{
  30. display: flex;
  31. flex-wrap:wrap;
  32. justify-content:space-between;
  33. padding:24rpx;
  34. box-sizing: content-box
  35. }
  36. .goods-box{
  37. width:339rpx;
  38. height:472rpx;
  39. overflow:hidden;
  40. margin-bottom:24rpx;
  41. background:#fff;
  42. }
  43. .goods-box .image-box{
  44. width:339rpx;
  45. height:339rpx;
  46. overflow: hidden;
  47. padding:8rpx 8rpx 0rpx 8rpx;
  48. box-sizing:border-box;
  49. }
  50. .image-box image{
  51. width:100%;
  52. height:339rpx;
  53. }
  54. .goods-box .goods-title{
  55. width:280rpx;
  56. text-overflow:ellipsis;
  57. white-space:nowrap;
  58. overflow: hidden;
  59. font-size:24rpx;
  60. padding:24rpx 0 0 24rpx;
  61. color:#000;
  62. }
  63. .goods-box .goods-price{
  64. width:280rpx;
  65. overflow:hidden;
  66. padding:24rpx 0;
  67. color:#e64340;
  68. font-size:24rpx;
  69. margin-left:24rpx;
  70. }