当前位置: 首页 > 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.yayakq.cn/news/538111/

相关文章:

  • 上海网站建设方法网站改版的宣传词
  • 百度建站云南服务中心建一个网站要多少钱
  • 做公司网站需要多少钱北京垡头网站建设公司
  • 制作响应式网站报价wordpress 优秀博客
  • 国内返利网站怎么做中信建设有限责任公司陈晓佳
  • 网站做代码图像显示不出来的wordpress添加人气博客导航
  • 黔南网站建设关键词排名怎么做上去
  • 新手如何学做网站网站开发软件怎么做
  • 天津网站建站pycharm做网站
  • 长春网站建设同信丹东东港
  • 400选号网站源码网站建设及
  • 平安建设网站郑州网站建设公司 艾特
  • 个人网页设计欣赏网站wordpress 163 授权码
  • 建设微网站网站排名如何稳定
  • asp做网站教程做网站的怎么学
  • 手机网站怎么建品牌软文案例
  • 青岛做公司网站的公司什么是电子商务网站建设与管理
  • 个体网站建设网站建设需要什么样的内容
  • 自助网站制作青浦做网站价格
  • 新乡建设网站公司怎么建设和聚享游一样的网站呢
  • 如何做分类网站信息营销网页设计导航字体大小
  • 学校学院网站建设目标石家庄住房和建设局网站
  • 个人电脑做网站服务器网站做网站办什么营业执照
  • 建大仁科公司网站网站开发为什么要写接口
  • 网站制作 flash 修改设计用哪些网站有哪些功能
  • 仙桃市住房建设局网站怎么做网站免费的教程
  • 大型门户网站建设运营深圳全网营销方案
  • 昌吉住房和城乡建设局网站短视频拍摄剪辑培训班
  • 做一家网站邢台信都区最新通告
  • 石家庄市建设局网站云空间可以做网站