九九热线视频精品99-动漫高h纯肉无码视频在线观看-午夜理论无码片在线观看免费-99精品国产在热久久无码-亚洲国产成人乱码

網頁中CSS3簡單的空調

2016/8/23 9:01:50   閱讀:1718    發布者:1718

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{margin:0; padding:0;}
.main{width:400px; height:340px; margin-top:150px; margin-left:150px;}
.main .container{width:300px; height:150px; position:relative; perspective:150px;}
.main .container .box{width:100%; height:100%; position:absolute; transform-style:preserve-3d;}
.main .container .box figure{display:block; position:absolute;}
.main .container .box .front{width:300px; height:150px; background-color:rgba(255, 160, 122, .7);}
.main .container .box .front h1{width:50px; height:20px; line-height:20px; text-align:center; font-size:14px; color:#FFF; margin-left:20px; margin-top:20px;}
.main .container .box .front span{width:60px; height:30px; line-height:35px; font-size:20px; color:#FFF; text-align:center; position:absolute; top:40px; right:30px; background-color:rgba(95, 95, 95, 1); display:inline-block; border-radius:5px;}
.main .container .box .front .light-1{width:6px; height:6px; border-radius:6px; background-color:#ceccc8; position:absolute; top:85px; right:40px; display:inline-block;}
.main .container .box .front .light-2{width:6px; height:6px; border-radius:6px; background-color:#ceccc8; position:absolute; top:85px; right:60px; display:inline-block;}
.main .container .box .front .light-2.active{background-color:#56FA0A; box-shadow:0 0 10px 1px #FFF;}
.main .container .box .back{width:300px; height:150px; transform:translateZ(-20px); background-color:rgba(50, 50, 50, 1);}
.main .container .box .right{width:20px; height:150px; left:290px; transform:translateZ(-10px) rotateY(90deg); background-color:rgba(254, 205, 82, .8);}
.main .container .box .left{width:20px; height:150px; left:-10px; transform:translateZ(-10px) rotateY(-90deg); background-color:rgba(254, 205, 82, .8);}
.main .container .box .top{width:300px; height:20px; top:-10px; transform:translateZ(-10px) rotateX(90deg); background-color:rgba(18, 20, 80, .8);}
.main .container .box .bottom{width:300px; height:20px; top:140px; transform:translateZ(-10px) rotateX(-90deg); background-color:rgba(18, 20, 80, .8); box-shadow:40px -10px 30px 4px gray;}
.main .container .box .div-1{width:260px; height:10px; position:absolute; top:110px; left:20px; background-color:rgba(255, 255, 255, .8); transform:translateZ(-5px) rotateX(90deg);}
.main .container .box .div-1:nth-of-type(2){top:120px;}
.animate-cycle{animation:cycle 12s linear infinite both;}
@keyframes cycle{
0% {transform:translateZ(-5px) rotateX(90deg);}
25% {transform:translateZ(-5px) rotateX(20deg);}
50% {transform:translateZ(-5px) rotateX(90deg);}
75% {transform:translateZ(-5px) rotateX(160deg);}
100% {transform:translateZ(-5px) rotateX(90deg);}
}
.main .box-1{width:80px; height:150px; border:1px solid #F57E0F; margin-top:20px; margin-left:20px; background-color:#19e6f8;}
.main .box-1 span{width:50px; height:25px; background-color:#F57E0F; color:#FFF; display:block; line-height:25px; text-align:center; margin-top:10px; margin-left:15px; font-size:14px; cursor:pointer;}
.main .box-1 span:hover{background-color:#fcd05a;}
</style>
</head>
<body>
<div class="main">
<div class="container">
<div class="box">
<figure class="front">
<h1>GREE</h1>
<span id="num">18 ºC</span>
<div class="light-1"></div>
<div class="light-2" id="light"></div>
</figure>
<figure class="back"></figure>
<figure class="right"></figure>
<figure class="left"></figure>
<figure class="top"></figure>
<figure class="bottom"></figure>
<div class="div-1" id="div_1"></div>
<div class="div-1" id="div_2"></div>
</div><!--box-->
</div><!--container-->
<div class="box-1">
<span id="openOrClose">開/關</span>
<span id="add">+</span>
<span id="reduce">-</span>
<span id="wind">風向</span>
</div><!--box-1-->
</div><!--main-->
<script>
window.onload = function(){

var getIdObject = function(id){
return document.getElementById(id);
}
var openOrClose = getIdObject(’openOrClose’),
add = getIdObject(’add’),
reduce = getIdObject(’reduce’),
wind = getIdObject(’wind’),
num = getIdObject(’num’),
light = getIdObject(’light’),
div_1 = getIdObject(’div_1’),
div_2 = getIdObject(’div_2’),
windStatus = 0,
status = 0;
openOrClose.onclick = function(){
if(!status){
status = 1;
light.className = ’light-2 active’;
}else{
status = 0;
light.className = ’light-2’;
windStatus = 0;
div_1.className = ’div-1’;
div_2.className = ’div-1’;
}
}
add.onclick = function(){
var numVal = parseInt(num.innerHTML);
if(!status || numVal >= 32){
return;
}else{
num.innerHTML = ++numVal + ’ ºC’;
}
}
reduce.onclick = function(){
var numVal = parseInt(num.innerHTML);
if(!status || numVal <= 16){
return;
}else{
num.innerHTML = --numVal + ’ ºC’;
}
}
wind.onclick = function(){
if(!status) return;
if(!windStatus){
windStatus = 1;
div_1.className = ’div-1 animate-cycle’;
div_2.className = ’div-1 animate-cycle’;
}else{
windStatus = 0;
div_1.className = ’div-1’;
div_2.className = ’div-1’;
}
}

}
</script>
</body>
</html>

主站蜘蛛池模板: 亚洲国产日韩精品一区二区三区 | 国产亲子乱弄免费视频| 国自产拍偷拍精品啪啪模特| 亚洲区激情区无码区日韩区| 亚洲欧洲日产国码中文字幕| 中文国产乱码在线人妻一区二区 | 亚洲性日韩精品一区二区三区| 国产精品日韩欧美一区二区三区| 制服丝袜亚洲中文欧美在线| 免费精品国自产拍在线不卡| 暖暖免费 高清 日本社区在线观看| 亚洲系列一区中文字幕| 热久久99热精品首页| 99re6热在线精品视频播放| 麻豆国产97在线 | 欧洲| 日韩精品 中文字幕 视频在线| 久久精品伊人波多野结衣| 亚洲日韩在线a视频在线观看| 亚洲色欲av无码成人专区 | 一个人在线观看免费视频www| 人妻在厨房被色诱 中文字幕| 中文字幕乱码一区av久久不卡| 中文字幕人妻被公上司喝醉 | 亚洲一区自拍高清亚洲精品| 国产suv精品一区二区62| 牛和人交videos欧美| 曰本女人与公拘交酡免费视频| 综合久久综合久久88色鬼| 亚洲精品无码高潮喷水在线| 99久久爱re热6在播放| 麻豆一精品传媒卡一卡二传媒| 偷窥xxxx盗摄国产| 天堂√最新版中文在线地址| 色欲av无码一区二区人妻| 影视先锋av资源噜噜| 亚洲午夜无码久久yy6080| www夜插内射视频网站| 久久精品国产99精品亚洲| 国产成人综合在线视频| 日韩精品专区在线影院重磅| 欧美肥胖老太vidio在线视频|