html5簡(jiǎn)介及新增功能介紹
發(fā)布時(shí)間:2020-05-18 15:34:28 作者:風(fēng)雨等歸期
我要評(píng)論
這篇文章主要介紹了html5簡(jiǎn)介及新增功能介紹,本文通過實(shí)例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下







<!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>網(wǎng)址:<input type="url"></li>
<li>日期:<input type="date"></li>
<li>數(shù)量:<input type="number"></li>
<li>日期:<input type="time"></li>
<li>手機(jī)號(hào):<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="啦啦啦 我是賣報(bào)的"></li>
<li>自動(dòng)獲得鼠標(biāo)焦點(diǎn):<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>


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








<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>動(dòng)畫</title>
</head>
<style>
/*from 和 to 等價(jià)于 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>



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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>導(dǎo)航欄</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;
/*必須先移動(dòng)后旋轉(zhuǎn)*/
transform: translateY(25px) rotateX(-90deg);
}
.box:hover {
transform: rotateX(90deg);
}
</style>
<body>
<ul>
<li>
<div class="box">
<div>好好學(xué)習(xí)</div>
<div>天天向上</div>
</div>
</li>
<li>
<div class="box">
<div>好好學(xué)習(xí)</div>
<div>天天向上</div>
</div>
</li>
<li>
<div class="box">
<div>好好學(xué)習(xí)</div>
<div>天天向上</div>
</div>
</li>
<li>
<div class="box">
<div>好好學(xué)習(xí)</div>
<div>天天向上</div>
</div>
</li>
</ul>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>旋轉(zhuǎn)木馬</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>


總結(jié)
到此這篇關(guān)于html5簡(jiǎn)介及新增功能介紹的文章就介紹到這了,更多相關(guān)html5簡(jiǎn)介新增功能內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!
相關(guān)文章

淺談HTML5 FileReader分布讀取文件以及其方法簡(jiǎn)介
本篇文章主要介紹了淺談HTML5 FileReader分布讀取文件以及其方法簡(jiǎn)介,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-11-09HTML與XHTML、以及HTML4與HTML5標(biāo)簽之間的區(qū)別簡(jiǎn)介
這篇文章主要介紹了HTML與XHTML、以及HTML4與HTML5標(biāo)簽之間的區(qū)別,是網(wǎng)頁前端編程入門學(xué)習(xí)中的基礎(chǔ)知識(shí),需要的朋友可以參考下2015-11-07HTML5的一個(gè)顯示電池狀態(tài)的API簡(jiǎn)介
這篇文章主要介紹了HTML5的一個(gè)顯示電池狀態(tài)的API簡(jiǎn)介,由Mozilla設(shè)計(jì),具體的設(shè)備和瀏覽器支持情況還要通過檢測(cè)才能確定,需要的朋友可以參考下2015-06-18HTML5是什么 HTML5是什么意思 HTML5簡(jiǎn)介
隨著Windows8正式版發(fā)布的腳步近在咫尺,近來關(guān)于Win8、IE10、HTML5的新聞逐漸增多,很多朋友對(duì)于Win8系統(tǒng)以及IE10瀏覽器都比較了解,但對(duì)于HTML5是什么還真有不少朋友不清2012-10-26HTML5安全介紹之內(nèi)容安全策略(CSP)簡(jiǎn)介
前言:HTML5出現(xiàn)后,網(wǎng)絡(luò)安全更加受到廣泛的關(guān)注。Web對(duì)于網(wǎng)絡(luò)安全有哪些改進(jìn)?我們?nèi)绾蝸砻鎸?duì)越來越危險(xiǎn)的網(wǎng)絡(luò)欺詐和攻擊?下面的文章談到了W3C對(duì)于這個(gè)問題的最新解決方2012-07-10HTML5的標(biāo)簽的代碼的簡(jiǎn)單介紹 HTML5標(biāo)簽的簡(jiǎn)介
本文主要介紹了HTML5的標(biāo)簽.不同于以前的標(biāo)簽.更簡(jiǎn)單.更方便2012-05-28html5新增的定時(shí)器requestAnimationFrame實(shí)現(xiàn)進(jìn)度條功能
html5為什么新增一個(gè)requestAnimationFrame,他的出現(xiàn)是為了解決什么問題?帶著這些問題跟隨腳本之家小編一起學(xué)習(xí)吧2018-12-13- 下面小編就為大家?guī)硪黄狧TML5新增加的功能詳解。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2016-09-05
- 大多數(shù)移動(dòng)應(yīng)用,不管是企業(yè)移動(dòng)應(yīng)用還是互聯(lián)網(wǎng)移動(dòng)應(yīng)用,90%都可以使用基于HTML5的Web技術(shù)就足夠2013-12-13


