Everyone has seen a certain degree of malicious ads, you shut up and out again! Why, JS to tell you
Html
Css
*{margin:0;
padding:0;
List-style:none;
Outline:none;
Box-sizing:border-box;
Text-decoration:none; } a {-webkit-touch-callout:none Text-decoration:none}: Focus {outline:0} body{Font-family:helvetica, STHeiTi,
"Microsoft Yahei", Sans-serif;
Color: #595757;
Background-color: #fff;
outline:0;
Overflow-x: Hidden;
-webkit-tap-highlight-color:rgba (0,0,0,0);
} img{Border:none; whitecolor{color: #fff;
Text-align:center;
}. flex_parent{display:-webkit-box;
Display:-moz-box;
Display:-ms-flexbox;
Display:-webkit-flex;
Display:flex;
}. flex_child{-webkit-box-flex:1;
-moz-box-flex:1;
-webkit-flex:1;
-ms-flex:1;
Flex:1;
}/*middle_box*/body{position:relative;
Background-color: #272822;
} #middleBox {width:260px;
height:248px;
margin:0 Auto; Background-image:url (..
/images/irfa_dog.jpg);
Background-repeat:no-repeat;
background-size:100% 100%;
border-radius:10px; /* Horizontal Vertical Center * * Position: Fixed
left:50%;
top:50%;
Margin-top: -124px;
-webkit-transform:translatex (-50%);
-moz-transform:translatex (-50%);
-o-transform:translatex (-50%);
-ms-transform:translatex (-50%);
Transform:translatex (-50%);
z-index:100;
}. close_btn{Display:block;
Overflow:hidden;
Position:absolute;
Top: -10px;
Right: -10px;
}. will_close{width:32px #middleBox a{Overflow:hidden} #middleBox a img, #middleBox a span, #middleBox ul li{
Float:left;
#middleBox a span{font-size:16px;
Color: #fff;
#middleBox ul{Overflow:hidden} #middleBox ul li{width:130px;} #middleBox ul Li a{line-height:50px;
Display:block;
padding-left:5px;
#middleBox ul Li a img{width:30px;
margin-right:2px;
margin-top:8px;
margin-left:5px;
}. btn_tel{Background-color: #F92665;
border-bottom-left-radius:10px;
}. btn_chat{Background-color: #1EA362;
border-bottom-right-radius:10px;
}. parent_btn{Position:absolute;
left:0; Bottom:0;
}
Js
/**
* Created by the Administrator on 2016/7/19
. * *
var adv={
div:null,
timer:null,
btn:null,
init:function () {
this.btn= document.getElementById ("closebtn");
This.div=document.getelementbyid ("Middlebox");
This.btn.onclick=this.displaynone
},
displayblock:function () {
adv.div.style.display= "block";
} ,
displaynone:function () {
adv.div.style.display= "none";
Timer=settimeout (function () {
adv.displayblock ();
},3000);
}
;
Window.onload=function () {
adv.init ();
};
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.