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实现的颜色渐变按钮的代码教程
Nov 12 HTML / CSS
结合 CSS3 transition transform 实现简单的跑马灯效果的示例
Feb 07 HTML / CSS
css3实现椭圆轨迹旋转的示例代码
Oct 29 HTML / CSS
CSS3 transforms应用于背景图像的解决方法
Apr 16 HTML / CSS
CSS Houdini实现动态波浪纹效果
Jul 30 HTML / CSS
html5触摸事件判断滑动方向的实现
Jun 05 HTML / CSS
让IE支持HTML5的方法
Dec 11 HTML / CSS
简单介绍HTML5中的文件导入
May 08 HTML / CSS
微信小程序“圣诞帽”的实现思路详解
Dec 28 HTML / CSS
Canvas图片分割效果的实现
Jul 29 HTML / CSS
HTML5 body设置全屏背景图片的示例代码
Dec 08 HTML / CSS
css弧边选项卡的项目实践
May 07 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 header()函数使用说明
2008/07/10 PHP
php 启动时报错的简单解决方法
2014/01/27 PHP
PHP实现根据时间戳获取周几的方法
2016/02/26 PHP
mac系统下安装多个php并自由切换的方法详解
2017/04/21 PHP
Nigma vs AM BO3 第二场2.13
2021/03/10 DOTA
JScript中的&quot;this&quot;关键字使用方式补充材料
2007/03/08 Javascript
JS 自定义函数缺省值的设置方法
2010/05/05 Javascript
jcarousellite.js 基于Jquery的图片无缝滚动插件
2010/12/30 Javascript
jQuery数组处理方法汇总
2011/06/20 Javascript
JS画5角星方法介绍
2013/09/17 Javascript
js中window.open()的所有参数详细解析
2014/01/09 Javascript
JS判断、校验MAC地址的2个实例
2014/05/05 Javascript
Visual Studio中js调试的方法图解
2014/06/30 Javascript
jQuery+AJAX实现网页无刷新上传
2015/02/22 Javascript
jquery简单实现外部链接用新窗口打开的方法
2015/05/30 Javascript
vue.js实现刷新当前页面的方法教程
2017/07/05 Javascript
浅谈vuex 闲置状态重置方案
2018/01/04 Javascript
vue实现在表格里,取每行的id的方法
2018/03/09 Javascript
vue做移动端适配最佳解决方案(亲测有效)
2018/09/04 Javascript
Node.js之readline模块的使用详解
2019/03/25 Javascript
深入浅出了解Node.js Streams
2019/05/27 Javascript
了解在JavaScript中将值转换为字符串的5种方法
2019/06/06 Javascript
js观察者模式的弹幕案例
2020/11/23 Javascript
[56:48]FNATIC vs EG 2019国际邀请赛小组赛 BO2 第二场 8.15
2019/08/16 DOTA
使用Python程序抓取新浪在国内的所有IP的教程
2015/05/04 Python
python 读取excel文件生成sql文件实例详解
2017/05/12 Python
Python 运行 shell 获取输出结果的实例
2019/01/07 Python
python代码区分大小写吗
2020/06/17 Python
Python爬虫headers处理及网络超时问题解决方案
2020/06/19 Python
浅谈Python 函数式编程
2020/06/20 Python
使用HTML5拍照示例代码
2013/08/06 HTML / CSS
学生励志演讲稿
2014/01/06 职场文书
员工三分钟演讲稿
2014/08/19 职场文书
大雁塔导游词
2015/02/04 职场文书
投资公司董事长岗位职责
2015/04/16 职场文书
如何理解Vue前后端数据交互与显示
2021/05/10 Vue.js