最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
CSS3如何實(shí)現(xiàn)微信小程序瀑布流布局

CSS3如何實(shí)現(xiàn)微信小程序瀑布流布局?這個(gè)問題可能是我們?nèi)粘W(xué)習(xí)或工作經(jīng)常見到的。希望通過這個(gè)問題能讓你收獲頗深。下面是小編給大家?guī)淼膮⒖純?nèi)容,讓我們一起來看看吧!

創(chuàng)新互聯(lián)建站作為成都網(wǎng)站建設(shè)公司,專注網(wǎng)站建設(shè)公司、網(wǎng)站設(shè)計(jì),有關(guān)企業(yè)網(wǎng)站設(shè)計(jì)方案、改版、費(fèi)用等問題,行業(yè)涉及輕質(zhì)隔墻板等多個(gè)領(lǐng)域,已為上千家企業(yè)服務(wù),得到了客戶的尊重與認(rèn)可。

1.column-count 屬性規(guī)定元素應(yīng)該被分隔的列數(shù):

-moz-column-count:3;     /* Firefox */
-webkit-column-count:3; /* Safari 和 Chrome */
column-count:3;

2.column-gap 屬性規(guī)定列之間的間隔:

-moz-column-gap:40px;        /* Firefox */
-webkit-column-gap:40px;    /* Safari 和 Chrome */
column-gap:40px;

3.column-rule 屬性設(shè)置列之間的寬度、樣式和顏色規(guī)則。

-moz-column-rule:3px outset #ff0000;    /* Firefox */
-webkit-column-rule:3px outset #ff0000;    /* Safari and Chrome */
column-rule:3px outset #ff0000;

4.column-span 屬性規(guī)定元素應(yīng)橫跨多少列。
Internet Explorer 10 和 Opera 支持 column-span 屬性。
Safari 和 Chrome 支持替代的 -webkit-column-span 屬性。
/只有 Chrome 和 Opera 支持 column-span 屬性。/

-webkit-column-span:all; /* Chrome */
column-span:all;

5.column-width 屬性規(guī)定列的寬度。
Internet Explorer 10 和 Opera 支持 column-width 屬性。
Firefox 支持替代的 -moz-column-width 屬性。
Safari 和 Chrome 支持替代的 -webkit-column-width 屬性。
注釋:Internet Explorer 9 以及更早版本的瀏覽器不支持 column-width 屬性。

column-width:100px;
-moz-column-width:100px; /* Firefox */
-webkit-column-width:100px; /* Safari 和 Chrome */

微信小程序瀑布流布局

wxml


  
    
      
      {{item.title}}
    
  

wxss

page{
  background-color: #eee;
}
.case-page{
  padding:20rpx;
}
.list-masonry{
  column-count: 2;
  column-gap: 20rpx;
}
.item-masonry{
  background-color: #fff;
  break-inside: avoid;/*避免在元素內(nèi)部插入分頁符*/
  box-sizing: border-box; 
  padding: 20rpx;
  margin-bottom:20rpx;
}
.item-masonry image {
  width: 100%;
}

JS

Page({
  /**
   * 頁面的初始數(shù)據(jù)
   */
  data: {
    imgWidth: 0, imgHeight: 0,
    note: [
      {
        title: '案例名稱',
        url: '/upload/otherpic64/10901.jpg',
      },
      {
        title: '你所不知道的紅酒知識(shí)',
        url: 'http://img3.imgtn.bdimg.com/it/u=1417732605,3777474040&fm=26&gp=0.jpg',
      },
      {
        title: '紅酒知識(shí)',
        url: 'http://f10.baidu.com/it/u=121654667,1482133440&fm=72',
      },
      {
        title: '案例名稱',
        url: '/upload/otherpic64/10902.jpg',
      },
      {
        title: '案例名稱',
        url: 'http://img3.imgtn.bdimg.com/it/u=1417732605,3777474040&fm=26&gp=0.jpg'
      },

      {
        title: '案例名稱',
        url: 'http://f10.baidu.com/it/u=121654667,1482133440&fm=72'
      },
      {
        title: '案例名稱',
        url: 'http://img4.imgtn.bdimg.com/it/u=2748975304,2710656664&fm=26&gp=0.jpg'
      },
      {
        title: '案例名稱',
        url: 'http://img2.imgtn.bdimg.com/it/u=1561660534,130168102&fm=26&gp=0.jpg'
      },
      {
        title: '案例名稱',
        url: 'http://img3.imgtn.bdimg.com/it/u=1417732605,3777474040&fm=26&gp=0.jpg'
      }
    ]
  }
})

感謝各位的閱讀!看完上述內(nèi)容,你們對CSS3如何實(shí)現(xiàn)微信小程序瀑布流布局大概了解了嗎?希望文章內(nèi)容對大家有所幫助。如果想了解更多相關(guān)文章內(nèi)容,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。


網(wǎng)站欄目:CSS3如何實(shí)現(xiàn)微信小程序瀑布流布局
分享網(wǎng)址:http://fisionsoft.com.cn/article/jghdee.html