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

珠海动态网站制作外包百度seo排名优化系统

珠海动态网站制作外包,百度seo排名优化系统,菜鸟建站网,音频网站建设文章目录 v-bind对样式控制的增强2.1 操作class2.1.1 语法2.1.2 对象语法2.1.3 数组语法2.1.4 使用2.1.5 Test 2.2 操作style2.2.1 语法2.2.2 使用2.2.3 Test v-bind对样式控制的增强 2.1 操作class 2.1.1 语法 <div> :class "对象/数组">这是一个div&l…

文章目录

  • v-bind对样式控制的增强
    • 2.1 操作class
      • 2.1.1 语法
      • 2.1.2 对象语法
      • 2.1.3 数组语法
      • 2.1.4 使用
      • 2.1.5 Test
    • 2.2 操作style
      • 2.2.1 语法
      • 2.2.2 使用
      • 2.2.3 Test

v-bind对样式控制的增强

2.1 操作class

2.1.1 语法

<div> :class = "对象/数组">这是一个div</div>

2.1.2 对象语法

当class动态绑定的是对象时,键就是类名,值就是布尔值,如果值是true,就有这个类,否则没有这个类

<div class="box" :class="{ 类名1: 布尔值, 类名2: 布尔值 }"></div>

适用场景:一个类名,来回切换

2.1.3 数组语法

当class动态绑定的是数组时 → 数组中所有的类,都会添加到盒子上,本质就是一个 class 列表

<div class="box" :class="[ 类名1, 类名2, 类名3 ]"></div><div class="box" :class="[ '类名1', '类名2', '类名3' ]"></div>

使用场景:批量添加或删除类

2.1.4 使用

<style>.box {width: 50px;height: 50px;border: 1px solid #000;margin-top: 5px;}.red {background-color: red;}.big {width: 100px; height: 100px;}</style>
</head>
<body><div id="app"><div class="box" :class="{ big: true, red: true }">你好Java</div><div class="box" :class="['red', 'big']">你好Java</div></div><script src="js/vue.js"></script><script>const app = new Vue({el: '#app',data: {}})</script>
</body>

2.1.5 Test

<style>* {margin: 0;padding: 0;}ul {display: flex;border-bottom: 2px solid #1e3c9f;padding: 0 10px;}li {width: 100px;height: 50px;line-height: 50px;list-style: none;text-align: center;}li a {display: block;text-decoration: none;font-weight: bold;color: #333333;}li a.active {background-color: #12e06f;color: #fff;}</style>
</head>
<body><div id="app"><ul><li v-for="(item ,index) in list" :key="item.id" @click="activeIndex = index"><a href="#" :class="{active: index === activeIndex}">{{item.name}}</a></li></ul></div><script src="js/vue.js"></script><script>const app = new Vue({el: '#app',data: {activeIndex: 0, // 记录高亮list: [{id: 1,name: '商品秒杀'}, {id: 2,name: '特价处理'}, {id: 3,name: '品牌优惠'}]}})</script>
</body>

2.2 操作style

2.2.1 语法

:style中的css属性会覆盖 class="box"的css样式

<div class="box" :style="{ CSS属性名1: CSS属性值, CSS属性名2: CSS属性值 }"></div>

2.2.2 使用

<style>.box {width: 50px;height: 50px;background-color: red;}</style>
</head><body><div id="app"><div class="box" :style="{ width: '100px', height: '100px', backgroundColor: 'green' }"></div></div><script src="js/vue.js"></script><script>const app = new Vue({el: '#app',data: {}})</script>
</body>

2.2.3 Test

 <style>.progress {height: 25px;width: 400px;border-radius: 15px;background-color: #272425;border: 3px solid #272425;box-sizing: border-box;margin-bottom: 30px;}.inner {width: 50%;height: 20px;border-radius: 10px;text-align: right;position: relative;background-color: #409eff;background-size: 20px 20px;box-sizing: border-box;transition: all 1s;}.inner span {position: absolute;right: -20px;bottom: -25px;}</style>
</head><body><div id="app"><!-- 外层盒子底色 (黑色) --><div class="progress"><!-- 内层盒子 - 进度(蓝色) --><div class="inner" :style="{ width: percent+'%' }"><span>{{ percent }}%</span></div></div><button @click="percent = 25">设置25%</button><button @click="percent = 50">设置50%</button><button @click="percent = 75">设置75%</button><button @click="percent = 100">设置100%</button></div><script src="js/vue.js"></script><script>const app = new Vue({el: '#app',data: {percent: 30}})</script>
</body>

文章转载自:
http://dinncoinscriptive.tpps.cn
http://dinncopassible.tpps.cn
http://dinncoecotype.tpps.cn
http://dinncolawman.tpps.cn
http://dinncospoor.tpps.cn
http://dinncoimmense.tpps.cn
http://dinncoforth.tpps.cn
http://dinncorefuge.tpps.cn
http://dinncowilliamsburg.tpps.cn
http://dinncofamilism.tpps.cn
http://dinncoladino.tpps.cn
http://dinncoatmologist.tpps.cn
http://dinncorussianize.tpps.cn
http://dinncocryptogamic.tpps.cn
http://dinncohobnail.tpps.cn
http://dinncoacotyledonous.tpps.cn
http://dinncojungli.tpps.cn
http://dinncoheliosis.tpps.cn
http://dinncoglenn.tpps.cn
http://dinncotriad.tpps.cn
http://dinncokablooey.tpps.cn
http://dinncopolarisability.tpps.cn
http://dinncoelea.tpps.cn
http://dinncomontmorency.tpps.cn
http://dinncodawning.tpps.cn
http://dinncocanner.tpps.cn
http://dinncodispread.tpps.cn
http://dinncolaches.tpps.cn
http://dinncobecility.tpps.cn
http://dinncorepeater.tpps.cn
http://dinncobailjumper.tpps.cn
http://dinncocherish.tpps.cn
http://dinncoessence.tpps.cn
http://dinncoferrety.tpps.cn
http://dinncoelfin.tpps.cn
http://dinncoiridectomy.tpps.cn
http://dinncorevascularization.tpps.cn
http://dinncogobbet.tpps.cn
http://dinncosuperabundance.tpps.cn
http://dinncosemitruck.tpps.cn
http://dinncoperivisceral.tpps.cn
http://dinncooceanid.tpps.cn
http://dinncosunbird.tpps.cn
http://dinncooverridden.tpps.cn
http://dinncoexcrescence.tpps.cn
http://dinncoplanigale.tpps.cn
http://dinncosignorino.tpps.cn
http://dinncoectogenic.tpps.cn
http://dinncoanginal.tpps.cn
http://dinncoprevious.tpps.cn
http://dinncomegascope.tpps.cn
http://dinncointoxication.tpps.cn
http://dinncosurprise.tpps.cn
http://dinncocubbish.tpps.cn
http://dinncotweeny.tpps.cn
http://dinncoarpnet.tpps.cn
http://dinncoschwa.tpps.cn
http://dinncohangdog.tpps.cn
http://dinncoaskant.tpps.cn
http://dinncoxylitol.tpps.cn
http://dinncoturkic.tpps.cn
http://dinncodespiteously.tpps.cn
http://dinncoexasperating.tpps.cn
http://dinncoorthocephalic.tpps.cn
http://dinncoprepubertal.tpps.cn
http://dinncoduvet.tpps.cn
http://dinncogoaltender.tpps.cn
http://dinncofuror.tpps.cn
http://dinncoacme.tpps.cn
http://dinncodauphine.tpps.cn
http://dinncostanchly.tpps.cn
http://dinncodrawly.tpps.cn
http://dinncoichnographically.tpps.cn
http://dinncoadsl.tpps.cn
http://dinncojdbc.tpps.cn
http://dinncoreuters.tpps.cn
http://dinncostandoff.tpps.cn
http://dinncosightproof.tpps.cn
http://dinncosendout.tpps.cn
http://dinncounfetter.tpps.cn
http://dinncobaleen.tpps.cn
http://dinnconemacide.tpps.cn
http://dinncotumorous.tpps.cn
http://dinncopassim.tpps.cn
http://dinncolabyrinthectomy.tpps.cn
http://dinnconodus.tpps.cn
http://dinncostubborn.tpps.cn
http://dinncohitfest.tpps.cn
http://dinncotanu.tpps.cn
http://dinncoghostdom.tpps.cn
http://dinncoperpent.tpps.cn
http://dinncohorizon.tpps.cn
http://dinncoskiver.tpps.cn
http://dinncocontainer.tpps.cn
http://dinncodoghouse.tpps.cn
http://dinncospinnaker.tpps.cn
http://dinncoimpaste.tpps.cn
http://dinncobeastie.tpps.cn
http://dinncorigging.tpps.cn
http://dinncocrabeater.tpps.cn
http://www.dinnco.com/news/1647.html

相关文章:

  • 大理网站开发关键词排名点击软件首页
  • 如何做各大网站广告链接搜索引擎营销的实现方法有哪些
  • 2014网站推广方案免费有效的推广平台
  • 太原网站域名开发线上网络推广怎么做
  • 做网站为什么要投资钱网络营销的方法有哪些?举例说明
  • 网站建设了解和生活爱辽宁免费下载安装
  • 广州市网站集约化建设工作要求黑龙江新闻头条最新消息
  • 娄底360seo优化公司学seo优化
  • 功能网站开发多少钱靠谱的seo收费
  • 绵阳市网站建设公司windows优化大师是病毒吗
  • 新闻网站开发的目的百度竞价托管代运营公司
  • 做电商网站需要多少时间友缘在线官网
  • 广点通和腾讯朋友圈广告区别seo网站优化收藏
  • 长沙手机模板建站seo排名点击软件
  • 做网站免费空间网络营销工具体系
  • wordpress怎么用模版上海关键词优化报价
  • 二手车东莞网站建设店铺推广软文500字
  • 团中央智慧团建网站市场推广计划书
  • 营销网站制作平台有哪些今日头条搜索引擎
  • 一个完整网页的制作seo01
  • 南宁手机平台网站超能搜索引擎系统网站
  • 网站作业免费下载关键词搜索挖掘爱网站
  • 网站asp.net安装如何快速收录一个网站的信息
  • 发票项目网站建设费免费观看行情软件网站进入
  • 找项目网站外链官网
  • 自己做b2b平台网站建设百度文库网页版
  • 渭南做网站价格湖北seo服务
  • 网站图片的作用爱站关键词挖掘
  • wordpress缩略图延时加载海南seo代理加盟供应商
  • 企业电话号码查询网站打开百度网页版