html5简介及新增功能介绍


Posted in HTML / CSS onMay 18, 2020

html5简介及新增功能介绍

html5简介及新增功能介绍

html5简介及新增功能介绍

html5简介及新增功能介绍

html5简介及新增功能介绍

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.png" width="300px" height="300px">
    <source src="video/Light.mp3" type="video/mp3">
    <source src="video/Light.mp3" type="video/ogg">
    您的浏览器太low

</video>
<form action="">

    <ol>
        <li>邮箱:<input type="email"></li>
        <li>网址:<input type="url"></li>
        <li>日期:<input type="date"></li>
        <li>数量:<input type="number"></li>
        <li>日期:<input type="time"></li>
        <li>手机号:<input type="tel"></li>
        <li>搜索:<input type="search"></li>
        <li>颜色:<input type="color"></li>

        <li>不能为空:<input type="text" required="required"></li>
        <li>提示为本:<input type="text" placeholder="啦啦啦  我是卖报的"></li>
        <li>自动获得鼠标焦点:<input type="text" autofocus="autofocus"></li>
        <li><input type="text" autocomplete="on" name="autocomplete"></li>

        <li><input type="submit" value="提交"></li>
    </ol>
    <hr>
</form>
<form action="">
    <ul>
        <li><input type="file" name="" id="" multiple></li>
        <li><input type="submit" value="提交"></li>
    </ul>
</form>
</body>
</html>

html5简介及新增功能介绍

html5简介及新增功能介绍

<!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;
    }

    div::before {
        display: inline-block;
        content: "我想";
        width: 100px;
        height: 100px;
        background-color: pink;
    }

    div::after {
        display: inline-block;
        content: "飞的更高";
        width: 100px;
        height: 100px;
        background-color: pink;
    }
</style>
<body>
<div>
    <ul>
        <li>1</li>
        <li>4</li>
        <li>4</li>
        <li>4</li>
        <li>4</li>
    </ul>
</div>
</body>
</html>

html5简介及新增功能介绍

html5简介及新增功能介绍

html5简介及新增功能介绍

html5简介及新增功能介绍
html5简介及新增功能介绍
html5简介及新增功能介绍
html5简介及新增功能介绍

html5简介及新增功能介绍

<!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 div[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 div.dotted2,
    .bowen div.dotted3,
    .bowen div.dotted4 {
        background-color: transparent;
        box-shadow: 0 0 8px deepskyblue;
        animation: pulse 1.2s linear infinite forwards;

    }

    .bowen div.dotted2 {
        animation-delay: 0.4s;
    }

    .bowen div.dotted3 {
        animation-delay: 0.8s;
    }


</style>
<body>
<div class="bowen">

    <div class="dotted1"></div>
    <div class="dotted2"></div>
    <div class="dotted3"></div>
    <div class="dotted4"></div>
</div>
</body>
</html>

html5简介及新增功能介绍

html5简介及新增功能介绍

html5简介及新增功能介绍

<!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 div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: cornflowerblue;
    }

    .box div:last-child {
        background-color: aliceblue;
        transform: rotateX(60deg);
    }

    .box:hover {
        transform: rotate3D(0, 1, 0, 60deg);
    }

</style>

<body>
<div class="box">
    <div></div>
    <div></div>
</div>
</body>
</html>

html5简介及新增功能介绍

<!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 div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: pink;
        text-align: center;
        line-height: 50px;
    }

    .box div:nth-child(1) {
        transform: translateZ(25px);
    }

    .box div:nth-child(2) {
        background-color: purple;
        /*必须先移动后旋转*/
        transform: translateY(25px) rotateX(-90deg);

    }

    .box:hover {

        transform: rotateX(90deg);

    }


</style>

<body>
<ul>
    <li>
        <div class="box">
            <div>好好学习</div>
            <div>天天向上</div>
        </div>
    </li>
    <li>
        <div class="box">
            <div>好好学习</div>
            <div>天天向上</div>
        </div>
    </li>
    <li>
        <div class="box">
            <div>好好学习</div>
            <div>天天向上</div>
        </div>
    </li>
    <li>
        <div class="box">
            <div>好好学习</div>
            <div>天天向上</div>
        </div>
    </li>

</ul>
</body>
</html>

html5简介及新增功能介绍

<!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 div.box {
        position: relative;
        transform-style: preserve-3d;
        animation: move 15s linear infinite;
        background: url("img/4.jpg") no-repeat;
        background-size: 300px 200px;
    }

    div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    div:nth-child(1) {
        background: url("img/3.jpg") no-repeat;
        background-size: 300px 200px;
        transform: rotateY(0) translateZ(400px);
    }

    div:nth-child(2) {
        background: url("img/9.jpg") no-repeat;
        background-size: 300px 200px;
        transform: rotateY(60deg) translateZ(400px);
    }

    div:nth-child(3) {
        background: url("img/5.jpg") no-repeat;
        background-size: 300px 200px;
        transform: rotateY(120deg) translateZ(400px);
    }

    div:nth-child(4) {
        background: url("img/6.jpg") no-repeat;
        background-size: 300px 200px;
        transform: rotateY(180deg) translateZ(400px);
    }

    div:nth-child(5) {
        background: url("img/7.jpg") no-repeat;
        background-size: 300px 200px;
        transform: rotateY(240deg) translateZ(400px);
    }

    div:nth-child(6) {
        background: url("img/8.jpg") no-repeat;
        background-size: 300px 200px;
        transform: rotateY(300deg) translateZ(400px);
    }

    @keyframes move {
        0% {
            transform: rotateY(0);
        }
        100% {
            transform: rotateY(360deg);
        }
    }

    .box:hover{
        animation-play-state: paused;
    }


</style>
<body>
<section>
    <div class="box">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</section>
</body>
</html>

html5简介及新增功能介绍

html5简介及新增功能介绍

总结

到此这篇关于html5简介及新增功能介绍的文章就介绍到这了,更多相关html5简介新增功能内容请搜索三水点靠木以前的文章或继续浏览下面的相关文章,希望大家以后多多支持三水点靠木!

HTML / CSS 相关文章推荐
CSS3的新特性介绍
Oct 31 HTML / CSS
CSS3属性使网站设计增强同时不消弱可用性
Aug 29 HTML / CSS
涂鸦板简单实现 Html5编写属于自己的画画板
Jul 05 HTML / CSS
canvas三角函数模拟水波效果的示例代码
Jul 03 HTML / CSS
html5指南-3.如何实现html元素拖拽功能
Jan 07 HTML / CSS
html5 自定义播放器核心代码
Dec 20 HTML / CSS
调用HTML5的Canvas API绘制图形的快速入门指南
Jun 17 HTML / CSS
html5 视频播放解决方案
Nov 06 HTML / CSS
LocalStorage记住用户和密码功能
Jul 24 HTML / CSS
Html5百叶窗效果的示例代码
Dec 11 HTML / CSS
html5中嵌入视频自动播放的问题解决
May 25 HTML / CSS
css中z-index: 0和z-index: auto的区别
Aug 23 HTML / CSS
Html5让容器充满屏幕高度或自适应剩余高度的布局实现
May 14 #HTML / CSS
Html5在手机端调用相机的方法实现
May 13 #HTML / CSS
Html5页面获取微信公众号的openid的方法
May 12 #HTML / CSS
钉钉企业内部H5微应用开发详解
May 12 #HTML / CSS
html5 横向滑动导航栏的方法示例
May 08 #HTML / CSS
HTML5触摸事件(touchstart、touchmove和touchend)的实现
May 08 #HTML / CSS
HTML5 body设置自适应全屏
May 07 #HTML / CSS
You might like
一些php技巧与注意事项分析
2011/02/03 PHP
适用于抽奖程序、随机广告的PHP概率算法实例
2014/04/09 PHP
php关闭warning问题的解决方法
2016/05/17 PHP
TP(thinkPHP)框架多层控制器和多级控制器的使用示例
2018/06/13 PHP
超棒的响应式布局jQuery插件Freetile.js
2014/11/17 Javascript
javascript实时显示当天日期的方法
2015/05/20 Javascript
jquery ajax 如何向jsp提交表单数据
2015/08/23 Javascript
JavaScript实现字符串与日期的互相转换及日期的格式化
2016/03/07 Javascript
JavaScript编写一个简易购物车功能
2016/09/17 Javascript
通过BootStrap实现轮播图的实际应用
2016/09/26 Javascript
jQuery插件zTree实现删除树子节点的方法示例
2017/03/08 Javascript
jQuery实现的手风琴侧边菜单效果
2017/03/29 jQuery
vue组件父子间通信之综合练习(聊天室)
2017/11/07 Javascript
从零开始搭建vue移动端项目到上线的步骤
2018/10/15 Javascript
vue+php实现的微博留言功能示例
2019/03/16 Javascript
Node.js如何优雅的封装一个实用函数的npm包的方法
2019/04/29 Javascript
Vue 实现从小到大的横向滑动效果详解
2019/10/16 Javascript
Python输出9*9乘法表的方法
2015/05/25 Python
Python实现PS滤镜特效之扇形变换效果示例
2018/01/26 Python
Java实现的执行python脚本工具类示例【使用jython.jar】
2018/03/29 Python
pandas.DataFrame选取/排除特定行的方法
2018/07/03 Python
DRF跨域后端解决之django-cors-headers的使用
2019/01/27 Python
在PYQT5中QscrollArea(滚动条)的使用方法
2019/06/14 Python
opencv3/C++实现视频背景去除建模(BSM)
2019/12/11 Python
详解pandas绘制矩阵散点图(scatter_matrix)的方法
2020/04/23 Python
Python Pandas数据分析工具用法实例
2020/11/05 Python
使用HTML和CSS3绘制基本卡通图案的示例分享
2015/11/06 HTML / CSS
canvas简易绘图的实现(海绵宝宝篇)
2018/07/04 HTML / CSS
海淘母婴商城:国际妈咪
2016/07/23 全球购物
Myprotein葡萄牙官方网站:英国优质运动营养品牌
2016/09/12 全球购物
delegate与普通函数的区别
2014/01/22 面试题
办公室文员自荐书
2014/02/03 职场文书
《放飞蜻蜓》教学反思
2014/04/27 职场文书
交警个人先进事迹材料
2014/05/11 职场文书
外贸英文求职信范文
2015/03/19 职场文书
5个pandas调用函数的方法让数据处理更加灵活自如
2022/04/24 Python