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

原型图怎么做网站交互怎么收录网站

原型图怎么做网站交互,怎么收录网站,网站怎么设置关键词,做网站空间费用是什么意思常见问题解答卡片 效果展示 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.zhongyajixie.com/news/28110.html

相关文章:

  • 国外免费二级域名注册网站搜索排名
  • 网站自己怎么建设高质量外链
  • 关于建设官方网站的申请seo查询seo
  • 建设银行房有e通网站网络热词2023流行语及解释
  • 临西做网站报价如何结合搜索检索与seo推广
  • 物流门户网站开发 报价小红书推广方案
  • 禾天姿网站建设杭州网站制作排名
  • 天津做网站多少钱广州竞价托管公司
  • 自己怎么做网站啊关键词搜索排名软件
  • 网站建设方案备案百度推广每年600元什么费用
  • 怎么在印度做网站班级优化大师app
  • 建设网站平台哪里最好长沙谷歌seo
  • 宁波建设网查询seo l
  • wordpress伪静态化郑州seo优化外包顾问
  • 高校网站站群什么软件能搜索关键词能快速找到
  • 二级域名网址seo营销论文
  • 韩雪个人网站推广运营平台
  • 书籍网站建设规划书淘宝热搜关键词排行榜
  • 有口碑的南通网站建设如何做网络推广
  • 网站建设的相关技术方案网站设计公司多少钱
  • DW如何做明星的个人网站黄页网站推广公司
  • 青岛做网站的有哪些google国际版
  • 柳州专业网站优化seo推广怎么收费
  • 推广广告投放郑州关键词优化平台
  • 杭州北京网站建设东莞seo网站优化排名
  • 合肥室内设计培训学校哪家好驻马店百度seo
  • 仓库改造类网站怎么做西安seo外包
  • 做网站优化的协议书品牌营销网站建设
  • 网站建设费 什么科目seo搜索引擎优化费用
  • 个人免费网站制作合肥seo建站