html语言信息框怎么弹出,HTML弹出对话框

制作的Html弹出对话框,扁平化风格。弹出以及取消时带有Jquery特效。喜欢的朋友可以将源代码拿走。

6c0da441eafc1a6428a43bec84ef9bff.png

源代码:html扁平化对话框h3{

float:left;

margin:5px 0 0 5px;

font: 16px "微软雅黑", Arial, Helvetica, sans-serif;

font-weight:800;

color:#efefef;

width:100%;

}

#foot{

height:50px;

margin-top:200px;

}

#foot>a{

float:left;

width:50%;

font: 18px "微软雅黑", Arial, Helvetica, sans-serif;

line-height:50px;

text-align:center;

background-color:#ff7777;

color:#fff;

text-decoration:none;

cursor:pointer;

}

#foot>a:hover{

background-color:#e84c3d;

}

#foot>a:active{

background-color:#c54143;

}

#center{

float:left;

margin:20px 5px 20px 5px;

font: 16px "微软雅黑", Arial, Helvetica, sans-serif;

color:#fff;

line-height:20px;

}" _ue_custom_node_="true">  弹出对话框     对话框提示语

我是弹出对话框    确定取消查看源代码          CSS3立方体柜子 Copyright©2014 Pengyaou版权所有    2014年3月12日    蜀ICP备14004625号  0){

$("#center").html("已经弹出");

return;

}

$("#center").html("我是弹出对话框");

var mWidth=$(document).width();

var mHeight=$(document).height();

$("#Main").css("margin-top",mHeight/2 "px");

$("#Main").css("margin-left",mWidth/2 "px");

$("#Main").animate({width:"540px",height:"300px",marginTop:mHeight/2-145 "px",marginLeft:mWidth/2-270 "px",opacity:1},300,function(){

$("#Main").animate({width:"500px",height:"250px",marginTop:mHeight/2-125 "px",marginLeft:mWidth/2-250 "px"},100);

});

}" _ue_custom_node_="true">

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值