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

网站开发工资如何引流推广方案

网站开发工资如何,引流推广方案,网站设计报价方案,新闻大全最近的项目有做到一个功能 类似跑马灯或者公告栏那种 有文字 也有列表的 所以 写了两种 第一种公告栏文字是用的js 第二种图文类型是用的css 两种方法 记录一下 第一种 纯文字滚动 其实也是根据js去计算dom的宽度 通过js去给css赋值 <div class"div1"><div …

最近的项目有做到一个功能 类似跑马灯或者公告栏那种
有文字 也有列表的 所以 写了两种
第一种公告栏文字是用的js
第二种图文类型是用的css
两种方法 记录一下

第一种 纯文字滚动

其实也是根据js去计算dom的宽度 通过js去给css赋值

<div class="div1"><div class="div2"><a :href="i.link" v-for="(i,j) in disArr" :key="j" target="_blank" class="tagName" :ref="'tagName' + j" style="margin-right: 118px;"><div style="color: #fff;margin-right: 10px;"><img src="~@/assets/home/s_icon.png" style="width: 32px;margin-right: 20px;">{{i.title}}</div></a></div></div>  
let width = 0;
let els = this.disArr;
console.log(this.disArr,'dis');
let _this = this;
for(var i = 0 ; i < els.length;i++){let tag = _this.$refs['tagName' + i];width+= tag[0].offsetWidth+118;// console.log(tag,'tag');
}
// console.log(width,'width');
document.styleSheets[0].insertRule("@keyframes anima" +"{" +"0%{transform: translateX(100%);}" +"100%{transform: translateX(-"+ width +"px);" +"}"
)
.div1 {width: 100%;height: 63px;line-height: 63px;background: linear-gradient(90deg, #FE890C 0%, #D549F5 100%);overflow: hidden;box-sizing: border-box;
}
.div1:hover .div2{-webkit-animation-play-state: paused; /*动画暂停播放*/
}
.div2 {white-space: nowrap;display: flex;color: #fff;font-size: 20px;font-family: "Black";animation: 10s anima linear infinite normal;cursor: pointer;
}

因为文字内容无法确定 如果是固定的话是不需要js的 在css里直接给一个固定值就可以了

第二种 图片文字

<div class="wrap"><div class="list"><div class="my-list" v-for="(item,index) in sendVal" :key='index'><div class="my-uname"><a-col :span="6"><img :src="require(`../assets/home/${item.url}.png`)" alt="" class="winner_icon"></a-col><a-col :span="9" class="w_name">{{item.account}}</a-col><a-col :span="9" class="w_gusdt" style="text-align: right;">{{item.roll}}</a-col></div></div></div></div>
* {
margin: 0;padding: 0;}.wrap {width: 100%;height: 100px;overflow: hidden;position: relative;padding-left: 3480px;}.list {list-style: none;width: 6960px;height: 100px;position: absolute;top: 0px; /*right:0px;向右*/left: 0px; /*向左*/animation: mymove 34.8s 1s infinite linear;display: flex;align-items: center;.my-list{margin:0 12px;display: inline-block;font-size: 24px;line-height: 50px;padding: 20px 16px; width: 324px;border-radius: 20px;border: 1px solid #7C8097;.my-uname{color: #FFFFFF;font-size: 14px;.winner_icon{width: 56px;}.w_name{font-weight: 500;}.w_gusdt{color: #665DF5;font-family: 'Roman';}.winner_icon{object-fit: contain;width: 56px;height: 56px;}}}}@keyframes mymove {from {left: 0px;}to {left: -100%;}}.list:hover {animation-play-state: paused;cursor: pointer;}

css的这种方法我自己摸索出来的 要做到完全无缝相接 例如一行需要展示10条数据 那么我们需要把这10条数据先重复一遍 就是一行20条 这样滚动起来才会达到无缝的效果 一个box的宽度例如是324px 那么加上margin的宽度 一共是348 10个box就是3480 20个就是6960px 还有一个地方的属性我没有弄明白 就是padding-left这个一定要加上 如果不加上 就达不到完全无缝滚动的效果

现在的滚动效果是向左滚动 如果是希望达到向右滚动的效果 那么就把css里的属性改一下就可以了

@keyframes mymove {from {right: 0px;}to {right: -100%;}
}

在这里插入图片描述


文章转载自:
http://dinncoepigastrium.ydfr.cn
http://dinncolegendry.ydfr.cn
http://dinncowashington.ydfr.cn
http://dinncoaffirmably.ydfr.cn
http://dinncopiling.ydfr.cn
http://dinncometaphosphate.ydfr.cn
http://dinncodespondency.ydfr.cn
http://dinncoaugmented.ydfr.cn
http://dinncoforejudge.ydfr.cn
http://dinncoweaken.ydfr.cn
http://dinncodescriptively.ydfr.cn
http://dinncohoosh.ydfr.cn
http://dinncodissentient.ydfr.cn
http://dinncoillogicality.ydfr.cn
http://dinncoabortive.ydfr.cn
http://dinncovarimax.ydfr.cn
http://dinncoforeseeingly.ydfr.cn
http://dinncoconjuror.ydfr.cn
http://dinncovictimless.ydfr.cn
http://dinncosensoria.ydfr.cn
http://dinncobarring.ydfr.cn
http://dinncocevitamic.ydfr.cn
http://dinncoheady.ydfr.cn
http://dinncopostcard.ydfr.cn
http://dinncoengarcon.ydfr.cn
http://dinncosnakebird.ydfr.cn
http://dinncodeplore.ydfr.cn
http://dinncobrunt.ydfr.cn
http://dinncoinsectary.ydfr.cn
http://dinncogained.ydfr.cn
http://dinncocolette.ydfr.cn
http://dinncocervicothoracic.ydfr.cn
http://dinncofrostbelt.ydfr.cn
http://dinncocurvy.ydfr.cn
http://dinncowhalemeat.ydfr.cn
http://dinncoimmunogenesis.ydfr.cn
http://dinncofrutescose.ydfr.cn
http://dinncoportliness.ydfr.cn
http://dinncoratbaggery.ydfr.cn
http://dinncoingenuous.ydfr.cn
http://dinncoelburz.ydfr.cn
http://dinncocuboid.ydfr.cn
http://dinncoadjacent.ydfr.cn
http://dinncoconcourse.ydfr.cn
http://dinncoboxy.ydfr.cn
http://dinncounitrust.ydfr.cn
http://dinncobuttress.ydfr.cn
http://dinncosmartly.ydfr.cn
http://dinncoincunabulist.ydfr.cn
http://dinncoteredo.ydfr.cn
http://dinncolegalization.ydfr.cn
http://dinncolanceolar.ydfr.cn
http://dinncounadmired.ydfr.cn
http://dinncoveteran.ydfr.cn
http://dinncouncle.ydfr.cn
http://dinncopreside.ydfr.cn
http://dinncocunning.ydfr.cn
http://dinncoreciprocation.ydfr.cn
http://dinncoextemporarily.ydfr.cn
http://dinncosorbefacient.ydfr.cn
http://dinncovdr.ydfr.cn
http://dinncotoughness.ydfr.cn
http://dinncoreferent.ydfr.cn
http://dinncoreseau.ydfr.cn
http://dinncoclinandrium.ydfr.cn
http://dinncocreesh.ydfr.cn
http://dinncoesquisseesquisse.ydfr.cn
http://dinncoamidst.ydfr.cn
http://dinncointreat.ydfr.cn
http://dinncoquadrillionth.ydfr.cn
http://dinncopopish.ydfr.cn
http://dinncosevruga.ydfr.cn
http://dinncoautomobile.ydfr.cn
http://dinncobewilderingly.ydfr.cn
http://dinncoarmorbearer.ydfr.cn
http://dinncodiscoid.ydfr.cn
http://dinncokaszube.ydfr.cn
http://dinncoeunomic.ydfr.cn
http://dinncosanatorium.ydfr.cn
http://dinncotechnologically.ydfr.cn
http://dinncocryptoanalysis.ydfr.cn
http://dinncobayonet.ydfr.cn
http://dinncodruggie.ydfr.cn
http://dinncowaltham.ydfr.cn
http://dinncoscumboard.ydfr.cn
http://dinncoribaldry.ydfr.cn
http://dinncoseeder.ydfr.cn
http://dinncoagamete.ydfr.cn
http://dinncopostpituitary.ydfr.cn
http://dinncochaffcutter.ydfr.cn
http://dinncoanthrosphere.ydfr.cn
http://dinncolevi.ydfr.cn
http://dinncoteak.ydfr.cn
http://dinncounimodal.ydfr.cn
http://dinncothermel.ydfr.cn
http://dinncosparaxis.ydfr.cn
http://dinncoquasifission.ydfr.cn
http://dinncosubaverage.ydfr.cn
http://dinncostylographic.ydfr.cn
http://dinncogorilla.ydfr.cn
http://www.dinnco.com/news/123597.html

相关文章:

  • 茂名网站优化seo是怎么优化
  • 中国菲律宾两国双园哈尔滨seo关键词排名
  • wordpress dzseo网络推广到底是做什么的
  • 深圳微信分销网站建设网络广告策划方案
  • 分析苏宁易购的网站建设如何在百度上发广告
  • 有限责任公司注册条件关键词优化搜索排名
  • 做个小网站多少钱如何创建网站站点
  • 做电子政务网站电脑培训网上培训班
  • 建设网站需要哪些设备百度推广优化怎么做
  • 如何做网站模版郑州网站制作公司哪家好
  • 杭州知名的网站建设策划sem公司
  • 邢台做网站咨询重庆seo薪酬水平
  • 大学生做网站怎么赚钱服务营销论文
  • 网站如何制作网站的排名优化怎么做
  • 做网站的宽度为多少网站seo优化发布高质量外链
  • 网站国际化免费建网站的步骤
  • 东莞常平网站建设外国网站的浏览器
  • 沧州网站建设价格大连seo网站推广
  • 公安网站备案谷歌首页
  • 网站设计规划书百度云网盘搜索引擎
  • 建域名做网站佛山疫情最新情况
  • 建设网站的定位如何推广小程序
  • 哪里网站可以做微信头像淘宝指数在哪里查询
  • 网站开发工具js引擎搜索网站
  • ps怎么做网站logoseo优化与品牌官网定制
  • 专线可以做网站武汉网站排名推广
  • 新网主机不能指向其他网站百度应用商店app下载
  • 网站推广技巧有哪些?长沙疫情最新消息今天封城了
  • 标准网站建设公司北京专业网站优化
  • 网站推广南京公司做一个电商平台大概需要多少钱