当前位置: 首页> 房产> 市场 > 做谷歌seo要发大量文章吗_网页设计师报名官网_站点_近期的重大新闻

做谷歌seo要发大量文章吗_网页设计师报名官网_站点_近期的重大新闻

时间:2025/8/12 8:40:55来源:https://blog.csdn.net/qq_39019768/article/details/143238840 浏览次数:0次
做谷歌seo要发大量文章吗_网页设计师报名官网_站点_近期的重大新闻

在之前有通过flex布局实现了s型布局,是通过截取数组形式循环加载数据
这次使用grid直接加载数据通过css实现
在这里插入图片描述

<div id="app"><template v-for="(item,inx) in items"><div class="row"><template v-for="(ite, index) in item.arr"><div class="row-list" :style="setEvent(index)"><div class="lineBg"><div class="line-title"><div class="box">{{ ite }}</div></div></div></div></template></div></template>
</div>
 new Vue({el: '#app',computed: {setEvent() {return function (index) {// 通过下标得当前是第几行const row = Math.floor(index / this.row) + 1;// 当前行的第几个const rowIndex = index % this.row;if (this.evenRow(index)) {return {// 设置grid属性值gridRowStart: row,gridColumnStart: this.row - rowIndex}}}},},data: {row: 6,items: [{arr: [1, 2, 3, 4, 5, 6]},{arr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},{arr: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]},{arr: [1, 2, 3, 4]}],},})
        .row {display: grid;grid-template-columns: repeat(6, 1fr);grid-template-rows: minmax(50px, auto);grid-auto-rows: minmax(50px, auto);grid-gap: 10px;margin-bottom: 10px;text-align: center;}.row-list {border: 1px solid #cccccc;}
关键字:做谷歌seo要发大量文章吗_网页设计师报名官网_站点_近期的重大新闻

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: