商城网站建设可以吗,开发软件学什么专业,青岛开发区网站,网络营销的内容有哪些方面实现步骤中的横线#xff0c;我们使用css中的after选择器#xff0c;content写空#xff0c;然后给这个范围设定一个绝对定位#xff0c;相当于和它设置伪类选择的元素的位置#xff0c;直接看代码#xff1a; const commonStyle useMemo(() ({fontSize: 30px}),[]…
实现步骤中的横线我们使用css中的after选择器content写空然后给这个范围设定一个绝对定位相当于和它设置伪类选择的元素的位置直接看代码 const commonStyle useMemo(() ({fontSize: 30px}),[])const guideProcesses useMemo(() ([{ step: 下载激活文件, desc: License Agent: 下载需要被授权服务的激活文件文件7天有效, icon: i style{commonStyle} classNameiconfont line icon-folder/i },{ step: 获取授权文件, desc: License Service/SI Console: 通过上传文件激活服务并下载授权文件, icon: i style{commonStyle} classNameiconfont line icon-auth/i },{ step: 授权服务, desc: License Agent: 上传授权文件可在许可证页面看到生成的服务授权信息, icon: i style{commonStyle} classNameiconfont line icon-download/i },{ step: 重启服务, desc: 重启服务服务重新获取授权, icon: i style{commonStyle} classNameiconfont line icon-restart/i },{ step: 查看服务授权状态, desc: License Agent: 刷新服务页面查看服务的授权状态, icon: i style{commonStyle} classNameiconfont icon-check/i }]),[commonStyle])const guideInfo useMemo(() Row classNamesteps{guideProcesses.map((item: any) Col classNames-info span{4} key{item.step}div classNames-icon{item.icon}/divdiv classNames-step{item.step}/divdiv classNames-desc{item.desc}/div/Col)}/Row,[guideProcesses])
相关css
.steps {.s-info {text-align: center;:not(:first-child) {margin-left: 45px;}.s-icon {color: #1890FF;.line::after {content: ;position: absolute;top: 20px;left: 150px;width: 180px;height: 1px;background-color: #1890FF;display: inline-block;}}.s-step {font-weight: 600;}.s-desc {opacity: .6;}}}