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

企业网站建设可行性分析com域名

企业网站建设可行性分析,com域名,企业做网站的作用,松江网站建设直接上代码&#xff0c;以下代码基于vue2,需要Vue3或者react可以使用国内直连GPT/Claude来帮你转换下 代码如下&#xff1a; // ScrollCardsGrid.vue <template><div class"scroll-cards-container"><!-- 左箭头 --><div v-show"showLef…

在这里插入图片描述

直接上代码,以下代码基于vue2,需要Vue3或者react可以使用国内直连GPT/Claude来帮你转换下

代码如下:

// ScrollCardsGrid.vue
<template><div class="scroll-cards-container"><!-- 左箭头 --><div v-show="showLeftArrow" class="scroll-arrow left-arrow" @click="handleScrollLeft"><i class="arrow-icon"></i></div><!-- 卡片容器 --><div class="cards-container" ref="cardsContainer" @scroll="handleScroll"><div class="cards-grid"><div v-for="(card, index) in cards" :key="index" class="card"><div class="card-content"><img :src="card.icon" class="card-icon" :alt="card.title" /><div class="card-info"><h3 class="card-title">{{ card.title }}</h3><p class="card-description">{{ card.description }}</p></div></div></div></div></div><!-- 右箭头 --><div v-show="showRightArrow" class="scroll-arrow right-arrow" @click="handleScrollRight"><i class="arrow-icon"></i></div></div>
</template><script>
export default {name: 'ScrollCardsGrid',data() {return {showLeftArrow: false,showRightArrow: false,scrollStep: 300,cards: [{icon: '/path/to/llama.png',title: 'Llama-3.1-405B',description: '作为Meta的Llama 3.1系列的巅峰之作...'},{icon: '/path/to/claude.png',title: 'Claude-3.5-Hai',description: 'The latest generation of Anthropic\'s fastest...'},{icon: '/path/to/chatgpt.png',title: 'ChatGPT-4o-La',description: 'OpenAI的最强大的模型...'},{icon: '/path/to/gpt4.png',title: 'GPT-4o-Mini',description: 'OpenAI的最新模型...'},{icon: '/path/to/gemini.png',title: 'Gemini-1.5-Pro',description: 'Google的Gemini系列多模态模型...'},{icon: '/path/to/mistral.png',title: 'Mistral-Medium',description: 'Mistral AI的中等大小模型...'},{icon: '/path/to/gemini-flash.png',title: 'Gemini-1.5-Flash',description: 'Powered by gemini-1.5-flash-002...'},{icon: '/path/to/llama70b.png',title: 'Llama-3.1-70B',description: '作为Meta的Llama 3.1系列的中型成员...'}]}},mounted() {this.checkArrows()window.addEventListener('resize', this.checkArrows)},beforeDestroy() {window.removeEventListener('resize', this.checkArrows)},methods: {checkArrows() {const container = this.$refs.cardsContainerif (!container) returnthis.showLeftArrow = container.scrollLeft > 0this.showRightArrow = container.scrollLeft < (container.scrollWidth - container.clientWidth)},handleScroll() {this.checkArrows()},handleScrollLeft() {const container = this.$refs.cardsContainercontainer.scrollBy({left: -this.scrollStep,behavior: 'smooth'})},handleScrollRight() {const container = this.$refs.cardsContainercontainer.scrollBy({left: this.scrollStep,behavior: 'smooth'})}}
}
</script><style scoped>
.scroll-cards-container {position: relative;width: 600px;margin: 0 auto;margin-top: 200px;display: flex;align-items: center;
}.cards-container {width: 100%;overflow-x: auto;scroll-behavior: smooth;/* 隐藏滚动条但保持功能 */scrollbar-width: none;-ms-overflow-style: none;padding: 16px 0;
}.cards-container::-webkit-scrollbar {display: none;
}.cards-grid {display: grid;/* 固定两行 */grid-template-rows: repeat(2, 1fr);/* 自动填充列,每列最小宽度280px */grid-auto-flow: column;grid-auto-columns: 280px;gap: 16px;padding: 0 16px;
}.card {background: #ffffff;border: 1px solid #e5e7eb;border-radius: 12px;padding: 16px;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);/* 确保卡片高度一致 */height: 88px;box-sizing: border-box;
}.card-content {display: flex;gap: 12px;height: 100%;
}.card-icon {width: 48px;height: 48px;border-radius: 8px;object-fit: cover;
}.card-info {flex: 1;display: flex;flex-direction: column;justify-content: center;
}.card-title {margin: 0 0 4px 0;font-size: 16px;font-weight: 600;line-height: 1.2;
}.card-description {margin: 0;font-size: 14px;color: #6b7280;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;line-height: 1.3;
}.scroll-arrow {position: absolute;width: 40px;height: 40px;background: rgba(255, 255, 255, 0.9);border-radius: 50%;display: flex;align-items: center;justify-content: center;cursor: pointer;box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);z-index: 1;transition: all 0.3s ease;
}.scroll-arrow:hover {background: rgba(255, 255, 255, 1);box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}.left-arrow {left: -20px;
}.right-arrow {right: -20px;
}.arrow-icon {font-style: normal;color: #374151;
}/* 适配移动端 */
@media (max-width: 640px) {.cards-grid {grid-template-rows: 1fr; /* 在移动端切换为单行 */}.scroll-arrow {display: none; /* 在移动端隐藏箭头 */}
}
</style>
http://www.hkea.cn/news/782055/

相关文章:

  • 网络科技公司招聘可靠吗seo多久可以学会
  • 企业网站建设的方案ppt网络营销的特点主要包括什么
  • 如何自行建设网站推广关键词优化
  • 建设学院网站百度收录关键词查询
  • 有关外贸的网站有哪些内容武汉抖音seo搜索
  • 娄底网站建设的话术深圳网站关键词排名优化
  • 福田大型商城网站建设seo营销方法
  • 网站开发专业就业指导企业网站设计与实现论文
  • 网络营销方式的思维导图seo关键词优化系统
  • wordpress访客ip记录福清市百度seo
  • 网站下载速度慢互联网广告推广公司
  • 电影网站空间配置网络营销的工具和方法有哪些
  • 包装设计网站免费百度seo搜索引擎优化厂家
  • 免费做公司网站sem对seo的影响有哪些
  • 网站空间购买费用关键词优化计划
  • 网站制作可以卖多少钱陕西网站建设制作
  • 深圳中小企业网站制作谷歌海外广告投放
  • 做游戏网站的需求分析创建app平台
  • 青岛胶南做网站的有多少seo商学院
  • 二月网站建设南宁百度个人中心登录
  • 如何在相关网站免费做宣传广告免费建立个人网站官网
  • 做搜狗网站优化首自己建立网站步骤
  • 企业资质查询官方网站最好的小说网站排名
  • 乐平网站设计北京互联网公司
  • 朝阳企业网站建设方案费用郑州网络营销学校
  • 建站行业发展百度广告代运营
  • 如何做积分商城网站鸡西seo顾问
  • p2p网站开发文档免费b站软件下载
  • 有没有做q版头像的网站今天百度数据
  • wordpress页面修改插件seo顾问阿亮