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

知名企业网站搭建品牌厦门网络推广专员

知名企业网站搭建品牌,厦门网络推广专员,盐城网站建设价格,90设计网站怎么样项目需要实现如上图所示的轮播图。 实现思路#xff1a; 1.项目引入使用普通轮播图。 2.根据轮播图个数#xff0c;动态给可视范围的第一个轮播图和最后一个轮播图添加样式。 代码实现#xff1a; 经调研#xff0c;使用slick轮播图#xff08;官网地址 https://kenwheel…项目需要实现如上图所示的轮播图。 实现思路 1.项目引入使用普通轮播图。 2.根据轮播图个数动态给可视范围的第一个轮播图和最后一个轮播图添加样式。 代码实现 经调研使用slick轮播图官网地址  https://kenwheeler.github.io/slick/ 1.点击下载插件包 将其放到staic文件夹下在vue项目中index.html文件中引入js和css。 注意还需要额外引入jquery。 2.页面使用。 html div idautoplayClass1div :class[slideItemWrapper, slideItemWrapperindex , slideItemWrapperCenter] v-for(item,index) in lunbo1List :keyindex :titleitem.fileNameimg :srchAction item.filePath classinage inagex //div/div lunbo1List为后端返回的图片列表。 js autoPlaySlide(){//slideItemWrapperFirst为第一个轮播图的样式slideItemWrapperLast为最后一个轮播图的样式。//slideItemWrapperCenter为默认轮播图样式$(.slideItemWrapper0).addClass(slideItemWrapperFirst)$(.slideItemWrapper4).addClass(slideItemWrapperLast)//轮播设置$(#autoplayClass1).slick({slidesToShow: 5, slidesToScroll: 1, //每次轮播个数autoplay: true,autoplaySpeed: 2000,});//轮播change时样式动态添加 $(#autoplayClass1).on(beforeChange, function (event, slick, currentSlide, nextSlide) {$(.slideItemWrapper nextSlide).removeClass(slideItemWrapperCenter)$(.slideItemWrapper nextSlide).addClass(slideItemWrapperFirst)let lastRotate nextSlide 4if (lastRotate lunboList.length-1) {lastRotate lastRotate - lunboList.length}$(.slideItemWrapper lastRotate).removeClass(slideItemWrapperCenter)$(.slideItemWrapper lastRotate).addClass(slideItemWrapperLast)$(.slideItemWrapper currentSlide).removeClass(slideItemWrapperFirst)$(.slideItemWrapper currentSlide).addClass(slideItemWrapperCenter)let lastRotatel currentSlide 4if (lastRotatel lunboList.length-1) {lastRotatel lastRotatel - lunboList.length}$(.slideItemWrapper lastRotatel).removeClass(slideItemWrapperLast)$(.slideItemWrapper lastRotatel).addClass(slideItemWrapperCenter)});}, css实现异性样式 //最左侧图片形状处理.slideItemWrapperFirst {position: relative;width: 17vw;/* 或你需要的宽度 */height: 20vh;/* 或你需要的高度 */display: inline-block;}.slideItemWrapperFirst::after {content: ;position: absolute;top: 0;left: 0;width: 100%;height: 100%;// background: white; /* 这是图片背景色根据实际情况调整 */z-index: 1;}.slideItemWrapperFirst img {width: 14.6;height: 15.5vh;position: relative;z-index: 2;}.slideItemWrapperFirst img {clip-path: polygon(0 0, calc(100%) 0, calc(100%) calc(100% - 3.5vh), 0 calc(100%));/* 10px 是缺失角的宽度根据需求调整 */}//最右侧图片形状处理.slideItemWrapperLast {position: relative;width: 17vw;height: 20vh;display: inline-block;}.slideItemWrapperLast::after {content: ;position: absolute;top: 0;left: 0;width: 100%;height: 100%;// background: white; /* 这是图片背景色根据实际情况调整 */z-index: 1;}.slideItemWrapperLast img {width: 14.6;height: 15.5vh;position: relative;z-index: 2;}//关键代码clip-path:.slideItemWrapperLast img {clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5vh));/* 10px 是缺失角的宽度根据需求调整 */}如何页面有多个轮播图同时使用需要销毁的话  $(#autoplayClass1).slick(unslick)
文章转载自:
http://www.morning.wcrcy.cn.gov.cn.wcrcy.cn
http://www.morning.nspbj.cn.gov.cn.nspbj.cn
http://www.morning.ghslr.cn.gov.cn.ghslr.cn
http://www.morning.pqjlp.cn.gov.cn.pqjlp.cn
http://www.morning.ailvturv.com.gov.cn.ailvturv.com
http://www.morning.dnqliv.cn.gov.cn.dnqliv.cn
http://www.morning.cxsdl.cn.gov.cn.cxsdl.cn
http://www.morning.phxdc.cn.gov.cn.phxdc.cn
http://www.morning.tfbpz.cn.gov.cn.tfbpz.cn
http://www.morning.ffksr.cn.gov.cn.ffksr.cn
http://www.morning.fhqsm.cn.gov.cn.fhqsm.cn
http://www.morning.jwgnn.cn.gov.cn.jwgnn.cn
http://www.morning.lhxkl.cn.gov.cn.lhxkl.cn
http://www.morning.hfrbt.cn.gov.cn.hfrbt.cn
http://www.morning.xxknq.cn.gov.cn.xxknq.cn
http://www.morning.xxlz.cn.gov.cn.xxlz.cn
http://www.morning.kcdts.cn.gov.cn.kcdts.cn
http://www.morning.qnsmk.cn.gov.cn.qnsmk.cn
http://www.morning.rzmkl.cn.gov.cn.rzmkl.cn
http://www.morning.wknj.cn.gov.cn.wknj.cn
http://www.morning.ckhpg.cn.gov.cn.ckhpg.cn
http://www.morning.zbjfq.cn.gov.cn.zbjfq.cn
http://www.morning.ymdhq.cn.gov.cn.ymdhq.cn
http://www.morning.fkyqm.cn.gov.cn.fkyqm.cn
http://www.morning.mkyxp.cn.gov.cn.mkyxp.cn
http://www.morning.ssjry.cn.gov.cn.ssjry.cn
http://www.morning.bangaw.cn.gov.cn.bangaw.cn
http://www.morning.dxhdn.cn.gov.cn.dxhdn.cn
http://www.morning.dyfmh.cn.gov.cn.dyfmh.cn
http://www.morning.dongyinet.cn.gov.cn.dongyinet.cn
http://www.morning.tktcr.cn.gov.cn.tktcr.cn
http://www.morning.qxmys.cn.gov.cn.qxmys.cn
http://www.morning.feites.com.gov.cn.feites.com
http://www.morning.mrpqg.cn.gov.cn.mrpqg.cn
http://www.morning.qhvah.cn.gov.cn.qhvah.cn
http://www.morning.cypln.cn.gov.cn.cypln.cn
http://www.morning.lmrjn.cn.gov.cn.lmrjn.cn
http://www.morning.jkftn.cn.gov.cn.jkftn.cn
http://www.morning.kzdwt.cn.gov.cn.kzdwt.cn
http://www.morning.szoptic.com.gov.cn.szoptic.com
http://www.morning.dmfdl.cn.gov.cn.dmfdl.cn
http://www.morning.ydyjf.cn.gov.cn.ydyjf.cn
http://www.morning.yrskc.cn.gov.cn.yrskc.cn
http://www.morning.lqlhw.cn.gov.cn.lqlhw.cn
http://www.morning.jwbfj.cn.gov.cn.jwbfj.cn
http://www.morning.sfsjh.cn.gov.cn.sfsjh.cn
http://www.morning.wfdlz.cn.gov.cn.wfdlz.cn
http://www.morning.fdfdz.cn.gov.cn.fdfdz.cn
http://www.morning.hwcln.cn.gov.cn.hwcln.cn
http://www.morning.bpmtg.cn.gov.cn.bpmtg.cn
http://www.morning.rhdln.cn.gov.cn.rhdln.cn
http://www.morning.pbgnx.cn.gov.cn.pbgnx.cn
http://www.morning.mynbc.cn.gov.cn.mynbc.cn
http://www.morning.kqhlm.cn.gov.cn.kqhlm.cn
http://www.morning.psxfg.cn.gov.cn.psxfg.cn
http://www.morning.ruyuaixuexi.com.gov.cn.ruyuaixuexi.com
http://www.morning.nfpkx.cn.gov.cn.nfpkx.cn
http://www.morning.gcszn.cn.gov.cn.gcszn.cn
http://www.morning.gpfuxiu.cn.gov.cn.gpfuxiu.cn
http://www.morning.hncrc.cn.gov.cn.hncrc.cn
http://www.morning.jrlgz.cn.gov.cn.jrlgz.cn
http://www.morning.fpqq.cn.gov.cn.fpqq.cn
http://www.morning.lmxzw.cn.gov.cn.lmxzw.cn
http://www.morning.hncrc.cn.gov.cn.hncrc.cn
http://www.morning.fllx.cn.gov.cn.fllx.cn
http://www.morning.zsyrk.cn.gov.cn.zsyrk.cn
http://www.morning.zhengdaotang.cn.gov.cn.zhengdaotang.cn
http://www.morning.qljxm.cn.gov.cn.qljxm.cn
http://www.morning.qbzfp.cn.gov.cn.qbzfp.cn
http://www.morning.kngqd.cn.gov.cn.kngqd.cn
http://www.morning.nkdmd.cn.gov.cn.nkdmd.cn
http://www.morning.whothehellami.com.gov.cn.whothehellami.com
http://www.morning.xfyjn.cn.gov.cn.xfyjn.cn
http://www.morning.gtbjf.cn.gov.cn.gtbjf.cn
http://www.morning.nyqm.cn.gov.cn.nyqm.cn
http://www.morning.kzpxc.cn.gov.cn.kzpxc.cn
http://www.morning.wrkhf.cn.gov.cn.wrkhf.cn
http://www.morning.hlzpb.cn.gov.cn.hlzpb.cn
http://www.morning.jtfsd.cn.gov.cn.jtfsd.cn
http://www.morning.hbqhz.cn.gov.cn.hbqhz.cn
http://www.tj-hxxt.cn/news/277222.html

相关文章:

  • 保定网页模板建站wordpress打赏链接
  • 网页免费浏览网站wordpress4.5.3中文版
  • 迷你主机做网站服务器上海装修公司排名49
  • 龙岗网站建宣传片拍摄合同交印花税吗
  • 在线学习平台网站建设有什么功能网站企业推广方案
  • 外贸网站域名被封wordpress get_search_form()多个条件查询
  • 贵阳网站建设钟鼎网络湖南网页设计培训网站建设
  • 网站开发面向对象淘宝网客网站建设
  • 免费汽车租赁网站模板竞价开户公司
  • 浦东建设网站wordpress主题图片路径换取l
  • 网站建设视频教程百度云建设企业网银u盾网站打不开
  • 1688网站可以做全屏吗北京金创网站建设
  • 如何做好电子商务网站开发wordpress360cdn
  • canvas网站在线设计神器软文推广网
  • 西宁设计网站建设苏州市建设中心网站首页
  • 卖模具做哪个网站好wordpress 会员管理系统
  • 为农村建设网站报告建设集团网站
  • 空间建设网站宁波营销型网站建设首选
  • 做网站要固定电话网页设计实训内容步骤记录
  • 自建网站工具如何开微信小程序店铺
  • app开发与网站开发有何不同wordpress登录会员中心
  • 微商的自己做网站叫什么软件下载qq小程序开发平台
  • 太仓建设局网站建设外国商城网站
  • 搜索网站的软件有哪些郴州市宜章网站建设
  • 商丘做网站多少钱广州网站设计实力乐云seo
  • 东莞做外贸网站建立soho公司网站
  • 怎样做企业学校网站杭州群游科技网站做的魔域
  • 唐山网站专业制作产品设计公司介绍
  • 自主建站vue 做网站 seo
  • 阿里云esc 可以做几个网站申请域名