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教程(10):CSS3 HSL声明设置颜色
Apr 02 HTML / CSS
使用简单的CSS3属性实现炫酷读者墙效果
Jan 08 HTML / CSS
css3 自定义字体font-face使用介绍
May 14 HTML / CSS
老生常谈CSS中的长度单位
Jun 27 HTML / CSS
纯css3使用vw和vh实现自适应的方法
Feb 09 HTML / CSS
如何使用localstorage代替cookie实现跨域共享数据问题
Apr 18 HTML / CSS
使用jquery实现HTML5响应式导航菜单教程
Apr 02 HTML / CSS
HTML5 canvas基本绘图之文字渲染
Jun 27 HTML / CSS
纯html+css实现Element loading效果
Aug 02 HTML / CSS
CSS布局之浮动(float)和定位(position)属性的区别
Sep 25 HTML / CSS
css如何把元素固定在容器底部的四种方式
Jun 16 HTML / CSS
如何解决flex文本溢出问题小结
Jul 15 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与已存在的Java应用程序集成
2006/10/09 PHP
15个小时----从修改程序到自己些程序
2006/10/09 PHP
mysql 全文搜索 技巧
2007/04/27 PHP
smarty section简介与用法分析
2008/10/03 PHP
javascript权威指南 学习笔记之变量作用域分享
2011/09/28 Javascript
js购物车实现思路及代码(个人感觉不错)
2013/12/23 Javascript
JavaScript关闭当前页面(窗口)不带任何提示
2014/03/26 Javascript
JavaScript中的数组特性介绍
2014/12/30 Javascript
jQuery为DOM动态追加事件的方法
2017/02/16 Javascript
js如何获取网页所有图片
2017/05/12 Javascript
jQuery 实现左右两侧菜单添加、移除功能
2018/01/02 jQuery
js中document.write和document.writeln的区别
2018/03/11 Javascript
js中如何完美的解析数据
2018/03/18 Javascript
Vue配合iView实现省市二级联动的示例代码
2018/07/27 Javascript
Vue动态路由缓存不相互影响的解决办法
2019/02/19 Javascript
浅谈Node框架接入ELK实践总结
2019/02/22 Javascript
深入探索VueJS Scoped CSS 实现原理
2019/09/23 Javascript
小程序使用wxs解决wxml保留2位小数问题
2019/12/13 Javascript
如何构建 vue-ssr 项目的方法步骤
2020/08/04 Javascript
在vue中嵌入外部网站的实现
2020/11/13 Javascript
[57:59]完美世界DOTA2联赛循环赛 Ink Ice vs LBZS BO2第一场 11.05
2020/11/05 DOTA
python使用Tkinter显示网络图片的方法
2015/04/24 Python
Sublime开发python程序的示例代码
2018/01/24 Python
Python写一个基于MD5的文件监听程序
2019/03/11 Python
如何在Python中实现goto语句的方法
2019/05/18 Python
python实现两个dict合并与计算操作示例
2019/07/01 Python
使用 Python 清理收藏夹里已失效的网站
2019/12/03 Python
django创建超级用户时指定添加其它字段方式
2020/05/14 Python
python 使用tkinter+you-get实现视频下载器
2020/11/17 Python
python中翻译功能translate模块实现方法
2020/12/17 Python
CSS3实现红包抖动效果
2020/12/23 HTML / CSS
《口技》教学反思
2014/02/21 职场文书
机关作风建设心得体会
2014/10/22 职场文书
个人落户申请书怎么写?
2019/06/28 职场文书
React + Threejs + Swiper 实现全景图效果的完整代码
2021/06/28 Javascript
阿里云服务器(windows)手动部署FTP站点详细教程
2022/08/05 Servers