详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
1.9 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <!-- <view class="content"> -->
  4. <!-- float 方案 -->
  5. <!-- <view class="item" :class="{'max-item': item == 0}" v-for="item in 6">{{ item + 1 }}</view> -->
  6. <!-- flex 方案 -->
  7. <!-- <view class="lf-flex-wrap">
  8. <view class="flex"
  9. :style="{order: item + 1}"
  10. :class="{'flex-max': item == 0}"
  11. v-for="item in 6"
  12. >{{ item + 1 }}</view>
  13. </view> -->
  14. <!-- </view> -->
  15. <div class="box-wrapper">
  16. <div style="margin-top:0px" class="box"></div>
  17. <div class="box spe"></div>
  18. <div class="box spe"></div>
  19. <div class="box spe"></div>
  20. <div class="box spe"></div>
  21. <div class="box"></div>
  22. <div class="box"></div>
  23. <div class="box spe"></div>
  24. <div class="box spe"></div>
  25. </div>
  26. </view>
  27. </template>
  28. <style>
  29. page{
  30. background-color: #F6F6F6;
  31. }
  32. </style>
  33. <script>
  34. export default {
  35. data(){
  36. return {
  37. }
  38. },
  39. onLoad(){
  40. },
  41. methods: {
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped="scoped">
  46. .box{
  47. height: 123px;
  48. padding: 1em;
  49. margin-top: 1em;
  50. -moz-page-break-inside: avoid;
  51. -webkit-column-break-inside: avoid;
  52. break-inside: avoid;
  53. border: 1px solid #000;
  54. background: #909090;
  55. }
  56. .spe{
  57. height: 225px;
  58. }
  59. .box-wrapper{
  60. -moz-column-count:4; /* Firefox */
  61. -webkit-column-count:4; /* Safari 和 Chrome */
  62. column-count:4;
  63. -moz-column-gap: 1em;
  64. -webkit-column-gap: 1em;
  65. column-gap: 1em;
  66. }
  67. .content{
  68. width: 750rpx;
  69. height: max-content;
  70. background-color: #FFFFFF;
  71. box-sizing: border-box;
  72. padding: 27rpx;
  73. overflow: hidden;
  74. .flex{
  75. width: 222rpx;
  76. height: 222rpx;
  77. background-color: #DD6161;
  78. margin: 5rpx;
  79. }
  80. .flex-max{
  81. width: 454rpx;
  82. height: 454rpx;
  83. }
  84. /* float
  85. .item{
  86. width: 222rpx;
  87. height: 222rpx;
  88. background-color: #DD6161;
  89. float: left;
  90. margin: 5rpx;
  91. }
  92. .max-item{
  93. width: 454rpx;
  94. height: 453rpx;
  95. }
  96. */
  97. }
  98. </style>