HTML新增的功能,html5中新增功能有哪些

html5中新增功能有哪些

发布时间:2021-05-23 08:42:46

来源:亿速云

阅读:87

作者:小新

这篇文章主要介绍了html5中新增功能有哪些,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

2417996fca2ff3b8b7a6624f3c81353d.png

e3e104be685faac35d8e815f6faa3aa5.png

bbc6ecb466f72a29ad0281d1a620bdc3.png

95af231c6abe658bdd9ea7c9fec79956.png

a7606792744a379d0b3b696bcbb9dda8.png

1c109fd4c00a09da67638a34eb00b025.png

7c09a66ab688ffbd3f6dd03c879dc36b.pnghtml>

audio

您的浏览器太low了

您的浏览器太low

  1. 邮箱:
  2. 网址:
  3. 日期:
  4. 数量:
  5. 日期:
  6. 手机号:
  7. 搜索:
  8. 颜色:
  9. 不能为空:
  10. 提示为本:
  11. 自动获得鼠标焦点:

b6b05a04c4475949206f3f974c215158.png

87ab455262bd9f85f6b13fe595a7fea7.pnghtml>

css3

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;

}

  • 1
  • 4
  • 4
  • 4
  • 4

7f146f2fb6cff76a0d0e6f6afa9da4e5.png

62c017a0223f465be968dd68f8422987.png

68016310595059a8f2977a1ca7b87e50.png

979539f1314e79680cc3637250599336.png

fde5165f4ef8da2171a20e8c9b31efb2.png

90c39f831c8793e1db22938c52fc9522.png

7333a00c466a9414e384cf63f228dbd4.png

5ed5fb12c2aa2a1f00d4a40da81bca66.pnghtml>

动画

/*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;

}

46f317be453908c42c49ebfa114180b5.png

1e18502003e7f8d3a954a7201f82a01f.png

76e81b1e18668f31ddc628e7672fdfb0.pnghtml>

3D

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);

}

3ef5eaa0e68d3208afdddaf4832989c8.pnghtml>

导航栏

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);

}

  • 好好学习
    天天向上
  • 好好学习
    天天向上
  • 好好学习
    天天向上
  • 好好学习
    天天向上

dde00faeff8ddd207d7f237e1aed0ac2.pnghtml>

旋转木马

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;

}

f89d140a244d94cd41add3604e5cd8f6.png

0e86b3cf54407cf8c192df53d5e372cd.png

感谢你能够认真阅读完这篇文章,希望小编分享的“html5中新增功能有哪些”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值