本文实例为大家总结了jQuery淡入淡出模态框的使用方法,供大家参考,具体内容如下
HTML代码如下:固定格式就省略了
rush:xhtml;">
个人额度情况
自2017年1月1日00:00起,至2017年01月16日 24:00,您的个人额度如下:
rush:css;">
/*模态框*/
.theme-popover-mask {
z-index: 9998;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#000;
opacity:0.7;
filter:alpha(opacity=70);
display:none
}
.theme-popover {
z-index:9999;
position:fixed;
top:50%;
left:50%;
width:660px;
height:360px;
margin:-180px 0 0 -330px;
border-radius:5px;
border:solid 2px #666;
background-color:#fff;
display:none;
Box-shadow: 0 0 10px #666;
}
.theme-poptit {
border-b
ottom:1px solid #ddd;
padding:12px;
position: relative;
font-size: 14px;
}
.theme-poptit .close {
float:right;
color:#999;
padding:5px;
margin:-2px -5px -5px;
font:bold 14px/14px s
imsun;
text-shadow:0 1px 0 #ddd
}
.theme-poptit .close:hover {
color:#444;
}
/*模态框
内容*/
.theme-edu
Box{
width: 550px;
height: 100px;
border: 1px solid #000;
overflow: hidden;
margin: 10px auto 50px;
text-align: center;
padding: 5px 0 5px 0;
color: #000;
background: #fff;
}
.theme-edu p{
font-size: 16px;
padding: 30px 0 20px 52px;
color: #333;
}
.theme-edu h5{
font-weight:
normal;
text-align: center;
}
.theme-edu h5 a{
color: #f18200;
}
.theme-eduInfo{
width: 49%;
height: 100%;
font-size: 18px;
float: left;
font-weight: bold;
border-right: 1px solid #ddd;
}
.theme-edu .ky{
border-right: 0;
}
.theme-ed
utopLf{
position: relative;
width: 100%;
height: 40px;
line-height: 40px;
font-weight:
normal;
}
.theme-ed
utopLf i{
position: absolute;
top: 10px;
left: 56px;
width: 20px;
height: 20px;
background: url("../img/used.png") no-repeat center center/cover;
}
.theme-ed
utopLf i.able{
background: url("../img/able.png") no-repeat center center/cover;
}
.theme-ed
utopLf .yye,.theme-eduInfo .bf{
color: #ec4e4e;
}
.theme-ed
utopLf .kye,.theme-eduInfo .bt{
color: #4CB8A8;
}
.theme-e
dubomLf{
width: 100%;
height: 60px;
line-height: 60px;
font-size: 22px;
overflow: hidden;
word-wrap: break-word;
rush:js;">
jQuery(document).ready(function($) {
$('.theme-login').click(function(){
$('.theme-popover-mask').fadeIn(100);
$('.theme-popover').slideDown(200);
});
$('.theme-poptit .close').click(function(){
$('.theme-popover-mask').fadeOut(100);
$('.theme-popover').slideUp(200);
});
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。