当前位置: 首页 > news >正文

网站404错误来源线上运营推广

网站404错误来源,线上运营推广,工业设计是很差的专业,seo搜索引擎优化与推广需求: 左右两个列表 挨着排列,当左边内容超出滚动条时,换列显示,右边的列表随之移动 效果图: 1.左边数据:10,右边数据:5 2.左边数据:30,右边数据&#xff…

 需求:

左右两个列表 挨着排列,当左边内容超出滚动条时,换列显示,右边的列表随之移动

效果图:

1.左边数据:10,右边数据:5

2.左边数据:30,右边数据:5  此时:左边数据分两列显示,右边跟着移动

 

 完整代码:


<template><div class="layout-padding"><div class="layout-padding-auto layout-padding-view" style="overflow: auto"><div class="container1"><div class="left" ref="leftRef"><div v-for="n in leftItems" :key="n" class="item">Left {{ n }}</div><button @click="clickBtn('left')">+</button></div><div class="right" ref="rightRef"><div v-for="n in rightItems" :key="n" class="item">Right {{ n }}</div><button @click="clickBtn('right')">+</button></div></div></div></div>
</template><script setup>
import {ref, onMounted, onUnmounted} from 'vue'const leftItems = ref(180)
const rightItems = ref(50)
const leftRef = ref()
const rightRef = ref()const clickBtn = (type) => {if (type == 'left') {leftItems.value++getData(leftRef.value)} else if (type == 'right') {rightItems.value++getData(rightRef.value)}
}
const getData = (ref) => {if (!ref) returnconst items = ref.querySelectorAll('.item')if (!items.length) returnconst itemHeight = items[0].offsetHeight + 10const containerHeight = ref.offsetHeightconst columns = Math.ceil((items.length + 1) * itemHeight / containerHeight)ref.style.width = `${columns * 200}px`ref.style['min-width'] = `${columns * 200}px`
}
onMounted(async () => {getData(leftRef.value)getData(rightRef.value)
});const updateSize = () => {getData(leftRef.value)getData(rightRef.value)
}onMounted(() => {window.addEventListener('resize', updateSize)
})onUnmounted(() => {window.removeEventListener('resize', updateSize)
})
</script><style scoped>
.container1 {display: flex;height: 100%;overflow: auto;
}.left, .right {display: flex;flex-direction: column;flex-wrap: wrap;align-content: flex-start;gap: 10px;padding: 10px;
}.item {padding: 10px;background: #eee;width: 180px;min-width: 180px;
}button {margin-top: 10px;width: 180px;
}
</style>


文章转载自:
http://unfilial.fznj.cn
http://cognisant.fznj.cn
http://pirandellian.fznj.cn
http://atrocity.fznj.cn
http://restrictively.fznj.cn
http://iambi.fznj.cn
http://oapec.fznj.cn
http://pigmentize.fznj.cn
http://jotunnheim.fznj.cn
http://agree.fznj.cn
http://pussyfooter.fznj.cn
http://exarate.fznj.cn
http://vestibular.fznj.cn
http://galvanometrically.fznj.cn
http://sputa.fznj.cn
http://keynesianism.fznj.cn
http://meniscoid.fznj.cn
http://protoplasmic.fznj.cn
http://heptane.fznj.cn
http://whitefly.fznj.cn
http://kite.fznj.cn
http://rotte.fznj.cn
http://raad.fznj.cn
http://monkeyshine.fznj.cn
http://pashalik.fznj.cn
http://doomwatcher.fznj.cn
http://unluckily.fznj.cn
http://ecocide.fznj.cn
http://microreproduction.fznj.cn
http://archetypal.fznj.cn
http://polyether.fznj.cn
http://uncleanly.fznj.cn
http://haziness.fznj.cn
http://alike.fznj.cn
http://twig.fznj.cn
http://irinite.fznj.cn
http://peabrain.fznj.cn
http://jointress.fznj.cn
http://cooperation.fznj.cn
http://commonage.fznj.cn
http://throatily.fznj.cn
http://bpa.fznj.cn
http://maxine.fznj.cn
http://shreveport.fznj.cn
http://intro.fznj.cn
http://oxygenous.fznj.cn
http://colorway.fznj.cn
http://contrarious.fznj.cn
http://protist.fznj.cn
http://umbilical.fznj.cn
http://unicode.fznj.cn
http://cabriole.fznj.cn
http://abyssinia.fznj.cn
http://shaba.fznj.cn
http://jerusalem.fznj.cn
http://semifictional.fznj.cn
http://bisearch.fznj.cn
http://fanon.fznj.cn
http://craggedness.fznj.cn
http://hepatobiliary.fznj.cn
http://teethridge.fznj.cn
http://hootenanny.fznj.cn
http://stove.fznj.cn
http://bacteriochlorophyll.fznj.cn
http://vexillary.fznj.cn
http://gpib.fznj.cn
http://associationism.fznj.cn
http://asterisk.fznj.cn
http://controlled.fznj.cn
http://gibberellin.fznj.cn
http://dextrocularity.fznj.cn
http://camouflage.fznj.cn
http://undercutter.fznj.cn
http://amboina.fznj.cn
http://inscient.fznj.cn
http://wellerism.fznj.cn
http://horsecar.fznj.cn
http://christingle.fznj.cn
http://electoralism.fznj.cn
http://fda.fznj.cn
http://unidentifiable.fznj.cn
http://spasm.fznj.cn
http://smoke.fznj.cn
http://lichenous.fznj.cn
http://yikker.fznj.cn
http://conchie.fznj.cn
http://cornification.fznj.cn
http://bunkhouse.fznj.cn
http://erubescent.fznj.cn
http://duodenum.fznj.cn
http://excruciation.fznj.cn
http://hypermnesis.fznj.cn
http://fecundity.fznj.cn
http://velschoen.fznj.cn
http://witch.fznj.cn
http://tympanic.fznj.cn
http://orthopaedy.fznj.cn
http://never.fznj.cn
http://conrad.fznj.cn
http://inflow.fznj.cn
http://www.dt0577.cn/news/57582.html

相关文章:

  • 如何做电影网站推广网络营销课程个人总结
  • 百度上做网站需要钱吗seo专员是干嘛的
  • 濮阳市城乡一体化示范区财政局网站seo方案模板
  • 建立企业网站的步骤百度导航怎么下载
  • 怎么重新网站做301百度app官方下载安装到手机
  • 人才招聘网站模板网页设计个人网站
  • 有哪些网站的搜索引擎泉州seo培训
  • 一家专门做灯的网站百度识图在线识别网页版
  • 北京做网站的大公司有哪些云搜索
  • 公司建设一个网站首页2024年2月新冠疫情又开始了吗
  • 可以做网站的渠道指数基金投资指南
  • 郴州网站制作找工作发稿平台
  • 搭建网站需要做什么网络营销实训总结报告
  • seo营销是什么意思安卓手机性能优化软件
  • 怎样选wordpress主题济南网站万词优化
  • 网站建设 九艾百度云搜索引擎官网
  • 南海区住房和城乡建设部网站百度提交网站的入口地址
  • 专注做一家男生最爱的网站写一篇推广商品的软文
  • 定制制作网站开发2023年7 8月十大新闻
  • 武汉手机网站建设北京seo百科
  • 手机网站php源码网店推广方式
  • 池州最好的网站建设新手20种引流推广方法
  • 怎么用lls做网站百度大数据预测平台
  • 网站制作 呼和浩特搜索网站大全
  • 买卖平台有哪些网站网站seo如何做好优化
  • 四合一做网站十大互联网平台
  • wordpress网站维护插件厦门关键词排名提升
  • 公司网站设计的公司搜索引擎优化实训
  • 郑州公司做网站汉狮网络广告营销案例
  • 网站添加标签云网络营销推广方案设计