html5基本结构图解(html5简介及新增功能介绍)
类别:Web前端 浏览量:1427
时间:2021-10-14 00:43:25 html5基本结构图解
html5简介及新增功能介绍
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>audio</title> </head> <body> <audio controls="controls"> <source src="video/Light.mp3" type="audio/mpeg"> <source src="video/Light.ogg" type="audio/ogg"> 您的浏览器太low了 </audio> <video controls muted poster="img/1.jpg" alt="html5基本结构图解(html5简介及新增功能介绍)" border="0" />
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>css3</title> </head> <style> ul li:nth-child(odd) { background-color: cornflowerblue; } ul { display: inline-grid; width: 200px; margin-left: -39px; list-style: none; text-align: center; } li::before { display: inline-block; content: "我想"; width: 100px; height: 100px; background-color: pink; } li::after { display: inline-block; content: "飞的更高"; width: 100px; height: 100px; background-color: pink; } </style> <body> <li> <ul> <li>1</li> <li>4</li> <li>4</li> <li>4</li> <li>4</li> </ul> </li> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>动画</title> </head> <style> /*from 和 to 等价于 0% 和 100%*/ /*@keyframes move {*/ /*0%{*/ /*transform:translateX(0px);*/ /*}*/ /*100%{*/ /*transform:translateX(1000px);*/ /*}*/ /*}*/ .bowen { position: fixed; top: 50%; left: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%); background-color: pink; } .bowen li[class^="dotted"] { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); background-color: deepskyblue; border-radius: 50%; } @keyframes pulse { 0% { } 70% { width: 100px; height: 100px; opacity: 1; } 100% { width: 100px; height: 100px; opacity: 0; } } .bowen li.dotted2, .bowen li.dotted3, .bowen li.dotted4 { background-color: transparent; box-shadow: 0 0 8px deepskyblue; animation: pulse 1.2s linear infinite forwards; } .bowen li.dotted2 { animation-delay: 0.4s; } .bowen li.dotted3 { animation-delay: 0.8s; } </style> <body> <li class="bowen"> <li class="dotted1"></li> <li class="dotted2"></li> <li class="dotted3"></li> <li class="dotted4"></li> </li> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>3D</title> </head> <style> body { perspective: 500px; } .box { position: relative; width: 200px; height: 200px; margin: 0 auto; transform-style: preserve-3d; transition: all .3s; } .box li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: cornflowerblue; } .box li:last-child { background-color: aliceblue; transform: rotateX(60deg); } .box:hover { transform: rotate3D(0, 1, 0, 60deg); } </style> <body> <li class="box"> <li></li> <li></li> </li> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>导航栏</title> </head> <style> li { float: left; padding: 0 10px; list-style: none; perspective: 500px; } .box { position: relative; width: 200px; height: 50px; transform-style: preserve-3d; transition: all .5s; } .box li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: pink; text-align: center; line-height: 50px; } .box li:nth-child(1) { transform: translateZ(25px); } .box li:nth-child(2) { background-color: purple; /*必须先移动后旋转*/ transform: translateY(25px) rotateX(-90deg); } .box:hover { transform: rotateX(90deg); } </style> <body> <ul> <li> <li class="box"> <li>好好学习</li> <li>天天向上</li> </li> </li> <li> <li class="box"> <li>好好学习</li> <li>天天向上</li> </li> </li> <li> <li class="box"> <li>好好学习</li> <li>天天向上</li> </li> </li> <li> <li class="box"> <li>好好学习</li> <li>天天向上</li> </li> </li> </ul> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>旋转木马</title> </head> <style> section { position: fixed; top: 50%; left: 50%; width: 300px; height: 200px; transform: translate(-50%, -50%); perspective: 2500px; } section li.box { position: relative; transform-style: preserve-3d; animation: move 15s linear infinite; background: url("img/4.jpg" alt="html5基本结构图解(html5简介及新增功能介绍)" border="0" />
总结
到此这篇关于html5简介及新增功能介绍的文章就介绍到这了,更多相关html5简介新增功能内容请搜索开心学习网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持开心学习网!
您可能感兴趣
- html5自动静音(html5录音功能实战示例)
- html5导入图片文件(HTML5 实现图片上传预处理功能)
- html5能取数据库吗(HTML5 客户端数据库简易使用:IndexedDB)
- h5实现弹出悬浮窗(Html5监听手机摇一摇事件的实现)
- html5 web技术(html5视频常用API接口的实战示例)
- html5 布局设计(Html5导航栏吸顶方案原理与对比实现)
- html5怎么设置左边input(HTML5中input输入框默认提示文字向左向右移动的示例代码)
- HTML5中新增的Input类型
- html5canvas动画(html5 canvas 实现光线沿不规则路径运动)
- Html5新增的标签
- html5 canvas 特效(JavaScript canvas实现流星特效)
- html5video怎么优化(HTML5 video循环播放多个视频的方法步骤)
- html5 postMessage(html5关于外链嵌入页面通信问题postMessage解决跨域通信)
- html元素和属性的区别(HTML5 HTMLCollection和NodeList的区别详解)
- 微信html5页面怎么制作(HTML5中外部浏览器唤起微信分享功能的代码)
- html5canvas画图有什么用(Html5基于canvas实现电子签名并生成PDF文档)
- 高考数学题(高考数学题基础题占多少分)
- 没钱只能吃土(没钱要吃土了幽默短信发朋友圈)
- 今年考高会很难吗(今年高考会考试吗)
- 盘古开天地 他创造了世界,谁创造了盘古 盘古是伏羲吗(盘古开天地他创造了世界)
- 关于队徽 你了解这些么 二(关于队徽你了解这些么)
- 冬天来了手脚冰凉 真不是因为上辈子你是折翼的天使(冬天来了手脚冰凉)
热门推荐
- linux idea怎么激活(在IDEA中使用Linux命令的操作方法)
- mysql修改表内字段的数据类型(mysql修改记录时update操作 字段=字段+字符串)
- 华为云阿里云腾讯云哪个服务好些(阿里云、腾讯云和华为云服务器相同配置哪个更好?)
- css中ul li的用法
- dedecms标题加粗方法(DEDECMS教程:去除列表页文章标题加粗标签的方法)
- 宝塔面板服务器连接不上(宝塔面板后台登陆不显示验证码解决办法)
- python mysql配置(详解python校验SQL脚本命名规则)
- HttpServerUtility类的常用方法
- 织梦dede数据库(dedeCMS 织梦的日期时间格式大全最新)
- SQL中的with as的使用
排行榜
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9