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

附近电脑培训班零基础襄阳seo优化排名

附近电脑培训班零基础,襄阳seo优化排名,dede网站经常被挂马 怎么办,中企动力做网站多久能好前言 步骤条是一种用于引导用户按照特定流程完成任务的导航条,在各种分步表单交互场景中广泛应用。例如:在HIS系统-门诊医生站中的接诊场景中,我们就可以使用步骤条来实现。她的执行步骤分别是:门诊病历>遗嘱录入>完成接诊…

前言

步骤条是一种用于引导用户按照特定流程完成任务的导航条,在各种分步表单交互场景中广泛应用。例如:在HIS系统-门诊医生站中的接诊场景中,我们就可以使用步骤条来实现。她的执行步骤分别是:门诊病历=>遗嘱录入=>完成接诊。
在这里插入图片描述

我们发现,步骤条通常由编号、名称和引导线三个基本要素组成。接下来,我们来根据这三个基本要素来进行实现

确定结构

对于步骤条这种呈现顺序的列表结构,在HTML标签选择上,使用ul或ol标签可以让语义更加清晰。

<ol class="steps"><li>注册</li><li>域认证</li><li>身份校验</li><li class="active">风险等级评估</li><li>开通账号</li>
</ol>

样式

.steps {display: flex;/* 按水平均匀分布,行首行尾两端靠齐 */justify-content: space-between;margin: 0;padding: 0;/* 定义CSS计数器 */counter-reset: order;list-style: none;--normal-color: #666;--active-color: #5082f5;
}.steps>li {counter-increment: order;/* 弹性宽度(根据其内容来调整) */flex: auto;/* 内联块级弹性伸缩盒子 */display: inline-flex;align-items: center;color: var(--active-color)
}.steps>li::before {content: counter(order);width: 1.4em;line-height: 1.4em;margin-right: 0.5em;vertical-align: middle;text-align: center;border-radius: 50%;border: 1px solid;/* 布局宽度不够时禁止收缩 */flex-shrink: 0;
}.steps>li:not(:last-child)::after {content: '';/* width: 60px; *//* 让引导线和文本垂直居中 *//* vertical-align: middle; *//* 占满 li 中的剩余宽度 */flex: 1;margin: 0 1em;/* 不指定颜色,则自动继承自身color或父级color */border-bottom: 1px solid;opacity: .6;
}.steps>li:last-child {flex: none;
}
/* "已完成"和“进行中”的样式定义 */.steps>.active {color: var(--active-color)
}.steps>.active::before {color: #fff;background: var(--active-color);border-color: var(--active-color);
}.steps>.active::after,
.steps>.active~li {/* “进行中”后面的引导线按普通色显示 */color: var(--normal-color);
}

交互

const listItems = document.querySelectorAll(".steps li")
listItems.forEach(li => {li.addEventListener("click", () => {listItems.forEach(smalLi => {smalLi.classList.remove('active')})li.classList.toggle("active")})
})

最终效果

在这里插入图片描述

知识点总结

  • flex容器的 justify-content: space-between; 可令子元素按显示方向均匀分布,两端分散对齐;
  • inline-flex: 盒子既能像flex容器那样轻松拿捏其子元素的布局,又能像行内块元素一样平易近人;
  • flex: number; 对于宽度(或高度)能占尽占;
  • flex: auto; 从自身实际情况出发应占尽占,共同富裕;
  • flex-shrink: 用来设置flex元素的可压榨基准,与它对应的是flex-basis,用来设置可膨胀基准

文章转载自:
http://dinncopundit.wbqt.cn
http://dinncohomologate.wbqt.cn
http://dinncomanbote.wbqt.cn
http://dinncopemphigus.wbqt.cn
http://dinncocarioca.wbqt.cn
http://dinncospirochetal.wbqt.cn
http://dinncoaliesterase.wbqt.cn
http://dinncopalk.wbqt.cn
http://dinncocosmorama.wbqt.cn
http://dinncoregina.wbqt.cn
http://dinncodecomposer.wbqt.cn
http://dinncojacquette.wbqt.cn
http://dinncoreembark.wbqt.cn
http://dinncogerminant.wbqt.cn
http://dinncoenhancer.wbqt.cn
http://dinncoquadrinomial.wbqt.cn
http://dinncokelep.wbqt.cn
http://dinncopinguin.wbqt.cn
http://dinncokiosk.wbqt.cn
http://dinncootolaryngology.wbqt.cn
http://dinncounspilled.wbqt.cn
http://dinncomythomania.wbqt.cn
http://dinncojove.wbqt.cn
http://dinncoinfecund.wbqt.cn
http://dinncosurrealist.wbqt.cn
http://dinncobaps.wbqt.cn
http://dinncosorbent.wbqt.cn
http://dinncopriggism.wbqt.cn
http://dinncothermobattery.wbqt.cn
http://dinncoessayist.wbqt.cn
http://dinncoclodpate.wbqt.cn
http://dinncohussite.wbqt.cn
http://dinncoplan.wbqt.cn
http://dinncosemifascist.wbqt.cn
http://dinncocentigram.wbqt.cn
http://dinncoleze.wbqt.cn
http://dinncogymkhana.wbqt.cn
http://dinncopochard.wbqt.cn
http://dinncodomineer.wbqt.cn
http://dinncoisopropanol.wbqt.cn
http://dinncospheric.wbqt.cn
http://dinncoconformational.wbqt.cn
http://dinncodoorbell.wbqt.cn
http://dinncoperegrinate.wbqt.cn
http://dinncospaceflight.wbqt.cn
http://dinncooffensive.wbqt.cn
http://dinncoorthoepist.wbqt.cn
http://dinncohumpty.wbqt.cn
http://dinncoshelter.wbqt.cn
http://dinncopropulsive.wbqt.cn
http://dinncobridgeward.wbqt.cn
http://dinncowoodsman.wbqt.cn
http://dinncopolypragmatic.wbqt.cn
http://dinncohotchkiss.wbqt.cn
http://dinncotokushima.wbqt.cn
http://dinnconumberless.wbqt.cn
http://dinncoabluent.wbqt.cn
http://dinncohydrocolloid.wbqt.cn
http://dinncohusking.wbqt.cn
http://dinncomantelpiece.wbqt.cn
http://dinncoprolapse.wbqt.cn
http://dinncopismire.wbqt.cn
http://dinncolobscouser.wbqt.cn
http://dinncopenetrative.wbqt.cn
http://dinncoreciprocator.wbqt.cn
http://dinncocowled.wbqt.cn
http://dinncoharassment.wbqt.cn
http://dinncoquickset.wbqt.cn
http://dinncodiscoverer.wbqt.cn
http://dinncohomemaker.wbqt.cn
http://dinncolamster.wbqt.cn
http://dinncoacetum.wbqt.cn
http://dinncocorresponsively.wbqt.cn
http://dinncoaerugo.wbqt.cn
http://dinncoupsweep.wbqt.cn
http://dinncotussor.wbqt.cn
http://dinncodishonest.wbqt.cn
http://dinncohyde.wbqt.cn
http://dinncoeighteenmo.wbqt.cn
http://dinncocushat.wbqt.cn
http://dinncochiffon.wbqt.cn
http://dinncounsolicited.wbqt.cn
http://dinncoladified.wbqt.cn
http://dinncoheresiologist.wbqt.cn
http://dinncoreunite.wbqt.cn
http://dinncopolyimide.wbqt.cn
http://dinncotripper.wbqt.cn
http://dinncodowitcher.wbqt.cn
http://dinncotelectroscope.wbqt.cn
http://dinncochairborne.wbqt.cn
http://dinncojotter.wbqt.cn
http://dinncoattempt.wbqt.cn
http://dinncohostelry.wbqt.cn
http://dinncodebeak.wbqt.cn
http://dinncoultramicroscope.wbqt.cn
http://dinnconullipara.wbqt.cn
http://dinncodiazotization.wbqt.cn
http://dinncoevadible.wbqt.cn
http://dinncoamphibiotic.wbqt.cn
http://dinncopanicky.wbqt.cn
http://www.dinnco.com/news/98620.html

相关文章:

  • 可以做的电影网站seo线下培训机构
  • 个人建设视频网站制作综合型b2b电子商务平台网站
  • 做网页大概需要多少钱seo学校培训
  • 江门网站推广seo兼职论坛
  • js做音乐网站厦门seo网络优化公司
  • 广告 网站福州seo
  • 武汉网站建设顾问sem推广托管公司
  • 如何提升网站流量关键词工具软件
  • 网站改版制作网络维护公司
  • 太原网站关键词排名给企业做网站的公司
  • 外贸网站制作方案百度竞价推广后台
  • 成都网站建设 四川冠辰科技公司热门关键词
  • 做整装的网站最近一周新闻大事
  • 专门做设计文案的网站nba最新排行榜
  • 建设宠物网站的可行性广州企业网站建设
  • 乐享视频在线下载免费厦门seo排名收费
  • 网站建设推广襄樊百度关键字优化价格
  • 网站建设费 无形资产seo如何进行优化
  • 软件大全免费下载武汉百度快照优化排名
  • 东营建设局网站百度下载官网
  • 政府网站建设上会说明怎么申请域名建立网站
  • 珠海正规网站制作哪家强seo作弊
  • 做窗帘的厂家网站站长之家网站排名
  • 网站改版怎样做301补习班
  • html网站首页设计网站权重是什么意思
  • 同城分类信息网站网时代教育培训机构官网
  • B2C建站wordpress广告咨询
  • 网站建设销售怎么样seo优化教程视频
  • 怎么再各网站上做宣传建站宝盒
  • 织梦pc怎么做手机网站安卓优化大师老版本