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

html球体涨水

简单

代码

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>div {width: 200px;height: 200px;margin-left: 200px;border: 1px solid red;border-radius: 50%;position: relative;overflow: hidden;}div::before {content: "";position: absolute;top: 100%;left: 0;background-color: red;width: 200px;height: 200px;border-radius: 50%;transition: 0.5s;}div:hover:before {top: 0;}</style>
</head><body><div></div>
</body></html>

 


复杂

代码

 

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>.container {width: 1000px;height: 580px;margin: 50px auto;border: 1px solid green;position: relative;}.top {margin: 0 auto 0px;padding: 10px 0;background: deepskyblue;color: #fff;}.dajianshi {width: 100%;height: 400px;position: relative;}ul {display: flex;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}ul li {list-style: none;}ul li span {width: 120px;height: 120px;background-color: #fff;text-align: center;line-height: 120px;margin: 0 10px;display: block;border-radius: 50%;position: relative;overflow: hidden;border: 3px solid #cde;z-index: 1;}ul li span:before {content: "";position: absolute;top: 100%;left: 0;width: 100%;height: 100%;transition: 0.5s;z-index: 2;}ul li span:hover:before {top: 0;}ul li:nth-child(1) span:before {background: red;}ul li:nth-child(2) span:before {background: orange;}ul li:nth-child(3) span:before {background: yellow;}ul li:nth-child(4) span:before {background: green;}</style>
</head><body><div class="container"><div class="top"><h3>球体涨水的效果</h3></div><div class="dajianshi"><ul><li><span></span></li><li><span></span></li><li><span></span></li><li><span></span></li></ul></div></div>
</body></html>

http://www.lryc.cn/news/340187.html

相关文章:

  • ubuntu手动编译opencv 4.9.0遇到的问题汇总
  • SEO之搜索引擎的工作原理(三)
  • 开发语言漫谈-python
  • JVM指令收集
  • 小程序解析二维码:jsQR
  • 【verilog 设计】 reg有没有必要全部赋初值?
  • NLP问答系统:使用 Deepset SQUAD 和 SQuAD v2 度量评估
  • php开发中如何防止抓包工具伪造请求
  • 密码学 | 椭圆曲线数字签名方法 ECDSA(下)
  • 拟态个人主页UI源码
  • 移动硬盘无法打开?别慌!这里有救星!
  • windows下已经创建好了虚拟环境,但是切换不了的解决方法
  • Java反序列化基础-类的动态加载
  • 课堂行为动作识别数据集
  • 【数据库】MVCC
  • 快速排序题目SelectK问题
  • es6解构赋值
  • Jenkins上面使用pnpm打包
  • 设计编程网站集:动物,昆虫,蚂蚁养殖笔记
  • 面经学习(众智宏图实习)
  • DataGrip2024安装包(亲测可用)
  • 【InternLM 实战营第二期-笔记4】XTuner 微调个人小助手认知
  • <计算机网络自顶向下> CDN
  • 【Git教程】(十二)工作流之项目设置 — 何时使用工作流,工作流的结构,项目设置概述、执行过程及其实现 ~
  • Java 排序算法
  • 【重磅更新】开源表单系统填鸭表单v5版发布!
  • 保姆级教程 | Adobe Illustrator 中插入数学符号
  • 数据结构——双向循环链表
  • 使用ZLMediaKit搭建服务器实现推流拉流
  • 【拦截器Interceptor】springboot拦截器的使用和原理