window.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* common.wxss */
  2. /* @import "/utils/common.wxss"; */
  3. /* 图片橱窗 */
  4. .diy-window .data-list::after {
  5. clear: both;
  6. content: " ";
  7. display: table;
  8. }
  9. .diy-window .data-list .data-item {
  10. float: left;
  11. box-sizing: border-box;
  12. }
  13. .diy-window .data-list .image {
  14. display: block;
  15. width: 100%;
  16. }
  17. /* 分列布局 */
  18. .diy-window .avg-sm-2 > .data-item {
  19. width: 50%;
  20. }
  21. .diy-window .avg-sm-3 > .data-item {
  22. width: 33.33333333%;
  23. }
  24. .diy-window .avg-sm-4 > .data-item {
  25. width: 25%;
  26. }
  27. .diy-window .avg-sm-5 > .data-item {
  28. width: 20%;
  29. }
  30. /* 橱窗样式 */
  31. .diy-window {
  32. box-sizing: border-box;
  33. }
  34. .diy-window .display {
  35. height: 0;
  36. width: 100%;
  37. margin: 0;
  38. padding-bottom: 50%;
  39. position: relative;
  40. box-sizing: border-box;
  41. }
  42. .diy-window .display .image {
  43. width: 100%;
  44. height: 100%;
  45. }
  46. .diy-window .display .display-left {
  47. width: 50%;
  48. height: 100%;
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. box-sizing: border-box;
  53. }
  54. .diy-window .display .display-right {
  55. width: 50%;
  56. height: 100%;
  57. position: absolute;
  58. top: 0;
  59. left: 50%;
  60. box-sizing: border-box;
  61. }
  62. .diy-window .display .display-right1 {
  63. width: 100%;
  64. height: 50%;
  65. position: absolute;
  66. top: 0;
  67. box-sizing: border-box;
  68. left: 0;
  69. }
  70. .diy-window .display .display-right2 {
  71. width: 100%;
  72. height: 50%;
  73. position: absolute;
  74. top: 50%;
  75. left: 0;
  76. box-sizing: border-box;
  77. }
  78. .diy-window .display .display-right2 .left {
  79. width: 50%;
  80. height: 100%;
  81. position: absolute;
  82. top: 0;
  83. left: 0;
  84. box-sizing: border-box;
  85. }
  86. .diy-window .display .display-right2 .right {
  87. width: 50%;
  88. height: 100%;
  89. position: absolute;
  90. top: 0;
  91. left: 50%;
  92. box-sizing: border-box;
  93. }