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

做简历网站知乎在线seo优化工具

做简历网站知乎,在线seo优化工具,优质网站建设的设计要点,app开发费用大概多少常见问题解答卡片 效果展示 CSS 知识点 CSS 选择器的使用background 渐变背景色运用CSS 综合知识运用 页面整体布局 <div class"container"><h1>经常问的问题</h1><!-- 这里只是展示一个项目 --><div class"tab"><in…

常见问题解答卡片

效果展示

在这里插入图片描述

CSS 知识点

  • CSS 选择器的使用
  • background 渐变背景色运用
  • CSS 综合知识运用

页面整体布局

<div class="container"><h1>经常问的问题</h1><!-- 这里只是展示一个项目 --><div class="tab"><input type="radio" name="acc" id="acc1" /><label for="acc1"><h2>01</h2><h3>权限申请目的不明</h3></label><div class="content"><p>未告知申请目的。App申请系统权限时未说明权限的申请目的,例如仅通过操作系统弹窗向用户申请系统权限,未通过App额外弹窗提示或在系统弹窗中编辑目的等方式,告知用户权限申请目的。</p></div></div>
</div>

实现基础结构样式

.container {margin: 0 40px;max-width: 600px;display: flex;flex-direction: column;gap: 20px;
}.container h1 {color: #333;
}.container .tab {position: relative;background: #fff;padding: 0 20px 20px;box-shadow: 0 15px 15px rgba(0, 0, 0, 0.05);border-radius: 5px;overflow: hidden;
}

修改单选按钮样式

.container .tab input {appearance: none;
}.container .tab label {display: flex;align-items: center;cursor: pointer;
}.container .tab label::after {content: "+";position: absolute;right: 20px;font-size: 1.4em;color: rgba(0, 0, 0, 0.1);transition: transform 1s;
}.container .tab:hover label::after {color: #333;
}

编写编号样式

.container .tab label h2 {width: 40px;height: 40px;background: #333;display: flex;justify-content: center;align-items: center;color: #fff;font-size: 1.25em;border-radius: 5px;margin-right: 10px;
}

编写单选按钮激活状态下的样式

.container .tab label h3 {position: relative;font-weight: 500;color: #333;z-index: 10;
}.container .tab .content {max-height: 0;transition: 1s;overflow: hidden;
}.container .tab input:checked ~ .content {max-height: 100vh;
}

实现上述代码后,效果如下:

在这里插入图片描述

升级编号的样式

.container .tab .content p {position: relative;padding: 10px 0;color: #333;z-index: 10;line-height: 25px;
}.container .tab:nth-child(2) label h2 {background: linear-gradient(135deg, #70f570, #49c628);
}.container .tab:nth-child(3) label h2 {background: linear-gradient(135deg, #3c8ce7, #00eaff);
}.container .tab:nth-child(4) label h2 {background: linear-gradient(135deg, #ff96f9, #c32bac);
}.container .tab:nth-child(5) label h2 {background: linear-gradient(135deg, #fd6e6a, #ffc600);
}

实现激活状态下的卡片背景样式

.container .tab input:checked ~ label h2 {position: absolute;top: 0;left: 0;width: 100%;height: 100%;color: rgba(255, 255, 255, 0.2);font-size: 8em;justify-content: flex-end;padding: 20px;
}.container .tab input:checked ~ label h3 {background: #fff;padding: 4px 15px;color: #333;border-radius: 4px;box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}.container .tab input:checked ~ .content p {color: #fff;
}

完整代码下载

完整代码下载

http://www.ds6.com.cn/news/87600.html

相关文章:

  • 随州网站建设多少钱百度指数的搜索指数
  • 网站建设南阳广州网络seo优化
  • 天津网站建设技术托管利尔化学股票股吧
  • 广西贵港建设集团有限公司网站seochinaz查询
  • 北京网站seo外包线上营销活动主要有哪些
  • 南宁做网站开发的公司有哪些苏州关键词优化怎样
  • 企业做网站价格网络营销论文毕业论文
  • 源码网站制作教程免费找客源软件
  • 项目计划书ai生成山东关键词优化联系电话
  • 网站在线客服模板seo品牌
  • 洪洞网站建设怎么制作个人网站
  • 免费源码分享提供seo顾问服务适合的对象是
  • 泰州市做网站化工网站关键词优化
  • 新闻网站开发方案百度手机app下载并安装
  • 30岁零基础学室内设计seo顾问是什么
  • 可以浏览违禁网址的浏览器网站优化公司推荐
  • 用php做网站出现的问题如何让百度能查到自己
  • 企业网站的目的百度认证考试
  • 商丘市做网站soso搜搜
  • 美国电话号码生成器江门seo
  • 上海企业信息公示系统官网windows优化大师的优点
  • 国外前端 网站windows优化大师可靠吗
  • 扶余网站建设网站友链查询源码
  • 某公司网站建设策划书app运营需要做哪些
  • 外贸网站建设软件有哪些深圳龙岗区布吉街道
  • 哪个网站有免费空间国内新闻最近新闻今天
  • 网站的静态页面用什么做营销网站都有哪些
  • 网站建设脱颖而出大数据查询个人信息
  • 多站点wordpress安装宁波seo整体优化公司
  • 专做进口批发的网站seo优化外包顾问