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 相关文章推荐
css背景图片的背景裁切、背景透明度、背景变换等效果运用
Dec 24 HTML / CSS
一款基于css3和jquery实现的动画显示弹出层按钮教程
Jan 04 HTML / CSS
利用SVG和CSS3来实现一个炫酷的边框动画
Jul 22 HTML / CSS
CSS3之transition实现下划线的示例代码
May 30 HTML / CSS
CSS3改变浏览器滚动条样式
Jan 04 HTML / CSS
HTML5 本地存储和内容按需加载的思路和方法
Apr 07 HTML / CSS
使用HTML5拍照示例代码
Aug 06 HTML / CSS
Html5实现文件异步上传功能
May 19 HTML / CSS
详解WebSocket跨域问题解决
Aug 06 HTML / CSS
详解移动端h5页面根据屏幕适配的四种方案
Apr 15 HTML / CSS
HTML5调用手机发短信和打电话功能
Apr 29 HTML / CSS
amazeui时间组件的实现示例
Aug 18 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与flash as3 socket通信传送文件实现代码
2014/08/16 PHP
ThinkPHP在新浪SAE平台的部署实例
2014/10/31 PHP
新浪SAE搭建PHP项目教程
2015/01/28 PHP
Codeigniter的dom类用法实例
2015/06/26 PHP
PHP实现的随机红包算法示例
2017/08/14 PHP
php+iframe 实现上传文件功能示例
2020/03/04 PHP
PHP unset函数原理及使用方法解析
2020/08/14 PHP
javascript 节点遍历函数
2010/03/28 Javascript
扩展javascript的Date方法实现代码(prototype)
2010/11/20 Javascript
浏览器页面区域大小的js获取方法
2013/09/21 Javascript
浅谈JavaScript中运算符的优先级
2015/07/07 Javascript
javascript实现数字倒计时特效
2016/03/30 Javascript
jquery实现全选和全不选功能效果的实现代码【推荐】
2016/05/05 Javascript
vue.js初学入门教程(1)
2016/11/03 Javascript
jQuery的$.extend 浅拷贝与深拷贝
2017/03/08 Javascript
jQuery实现select下拉框获取当前选中文本、值、索引
2017/05/08 jQuery
Vue实现日历小插件
2019/06/26 Javascript
vue如何实现自定义底部菜单栏
2019/07/01 Javascript
vue项目中使用bpmn为节点添加颜色的方法
2020/04/30 Javascript
vue移动端写的拖拽功能示例代码
2020/09/09 Javascript
python 远程统计文件代码分享
2015/05/14 Python
Python微信公众号开发平台
2018/01/25 Python
python获取命令行输入参数列表的实例代码
2018/06/23 Python
对PyTorch torch.stack的实例讲解
2018/07/30 Python
Pycharm新建模板默认添加个人信息的实例
2019/07/15 Python
Python如何调用外部系统命令
2019/08/07 Python
win10系统Anaconda和Pycharm的Tensorflow2.0之CPU和GPU版本安装教程
2019/12/03 Python
python Canny边缘检测算法的实现
2020/04/24 Python
FLIR美国官网:热成像, 夜视和红外摄像系统
2018/07/13 全球购物
匡威荷兰官方网站:Converse荷兰
2018/10/24 全球购物
一组SQL面试题
2016/02/15 面试题
办理暂住证介绍信
2014/01/11 职场文书
先进党支部申报材料
2014/12/24 职场文书
机关单位2016年创先争优活动总结
2016/04/05 职场文书
看看如何用Python绘制小米新版天价logo
2021/04/20 Python
React Hook用法示例详解(6个常见hook)
2021/04/28 Javascript