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

做淘宝网店需要多少钱seo关键词优化报价

做淘宝网店需要多少钱,seo关键词优化报价,最适合女生的专业排名,长春二手房实现5*5正方形网格x轴和y轴显示对应数值组件封装 需求&#xff1a;按5*5的正方形网格&#xff0c;根据目标数据的x和y轴值显示对应的文字&#xff0c;实现效果图如下&#xff1a;&#xff08;当前目标数值&#xff1a;x2&#xff0c;y2&#xff09; 代码如下&#xff1a; <…

实现5*5正方形网格x轴和y轴显示对应数值组件封装

需求:按5*5的正方形网格,根据目标数据的x和y轴值显示对应的文字,实现效果图如下:(当前目标数值:x=2,y=2)

在这里插入图片描述

代码如下:

<template><div class="box"><div class="box-item" v-for="(item, index) in itemList" :key="index" :class="item.className">{{ (x === item.x && y === item.y) ? item.label : '' }}</div></div>
</template><script setup lang="ts">
withDefaults(defineProps<{x?: number,y?: number
}>(), {x: 2,y: 2
})interface itemType {className: string;label: string;x: number;y: number;
}
let itemList: itemType[] = Array.from({ length: 25 }).map((_, index) => {let result = {className: '',label: '中',x: 0,y: 0}if ([3, 4, 8, 9, 14].includes(index)) {result.className = 'blue'result.label = '高'} else if ([10, 15, 16, 20, 21].includes(index)) {result.className = 'orange'result.label = '低'}result.className += ` xy-${index}`return result
})
let Y = 10
for (let j = 0; j < 25; j += 5) {for (let i = j; i < j + 5; i++) {if ([0, 5, 10, 15, 20].includes(i)) {itemList[i].x = 2} else {itemList[i].x = itemList[i - 1].x + 2}itemList[i].y = Y}Y -= 2
}
</script><style lang="scss" scoped>
.box {width: 270px;display: flex;flex-wrap: wrap;position: absolute;&::after {content: 'x轴';position: absolute;bottom: -20px;right: -10px;}&::before {content: 'y轴';position: absolute;top: -10px;left: -20px;// transform: rotate(-90deg);writing-mode:vertical-lr;}
}.box-item {width: 20%;height: 50px;border: 1px solid #ff0000;box-sizing: border-box;font-size: 16px;display: flex;align-items: center;justify-content: center;position: relative;&.xy-0::after {content: '10';position: absolute;left: -20px;}&.xy-5::after {content: '8';position: absolute;left: -20px;}&.xy-10::after {content: '6';position: absolute;left: -20px;}&.xy-15::after {content: '4';position: absolute;left: -20px;}&.xy-20::after {content: '2';position: absolute;left: -20px;}&.xy-20::before {content: '2';position: absolute;bottom: -20px;}&.xy-21::before {content: '4';position: absolute;bottom: -20px;}&.xy-22::before {content: '6';position: absolute;bottom: -20px;}&.xy-23::before {content: '8';position: absolute;bottom: -20px;}&.xy-24::before {content: '10';position: absolute;bottom: -20px;}
}.blue {background-color: skyblue;
}.orange {background-color: orange;
}
</style>
http://www.hengruixuexiao.com/news/8523.html

相关文章:

  • 网站建设基本内容教育培训机构排名
  • 建设什么网站可以上传视频营销手段和技巧
  • 上海浦东哪里有做网站的公司seo网络营销推广公司
  • 广告公司名称取名自贡网站seo
  • 沈阳网站建设专家工具站seo
  • 做网店在素材网站找的图侵权吗湖南网站设计外包哪家好
  • web网站设计的要求兰州网络推广推广机构
  • 网站的seo怎么做竞价排名
  • 浏览器怎么做能不拦截网站b2b网站平台有哪些
  • java做视频网站的需求合肥网络推广平台
  • 网站商城建设合同范本关键词推广优化app
  • 泰州网站制作网站软文范例大全100
  • 韩国网站后缀优化近义词
  • 做网站 图片 文件夹 放哪儿seo收费
  • 茶网站建设方案seo网站优化怎么做
  • 网站app开发平台百度搜索排行
  • 浙江建设信息港手机版长春seo网站优化
  • 国外 网站设计济南网站优化公司排名
  • 做网站排版广州seo推广公司
  • 福田区罗湖区盐田区关键词整站优化
  • 下载做网站的软件网络营销推广的方式
  • 北京疫情情况 最新消息今天推推蛙seo
  • 免费广告行业网站建设如何推广自己的产品
  • 网站设计师对应的专业最近发生的热点事件
  • 商标注册号站内关键词排名优化软件
  • 外贸网站建设软件品牌推广活动策划方案
  • 变更网站做推广需要备案郴州网站定制
  • 邢台市第三医院厦门站长优化工具
  • java做动态网站引擎网站推广法
  • 深圳做网站j华信科网络营销成功的品牌