首页 > 移动平台 > 详细

移动端 一个简单易懂的弹出框

时间:2016-07-06 11:39:45      阅读:200      评论:0      收藏:0      [点我收藏+]

图片效果如下

技术分享

 function tishi(content,url) {
	var html = ‘<div class="xiaoxi none" id="msg" style="z-index:9999;left: 5%;width: 90%;position: fixed;background:none;top:50%;"> <p class="msg" style="background: none repeat scroll 0 0 #000; border-radius: 30px;color: #fff; margin: 0 auto;padding: 1.5em;text-align: center;width: 70%;opacity: 0.8;"></p></div>‘;
	$(document.body).append(html); 
	$("#msg").show();
        $(".msg").html(content);
	if(url){
		window.setTimeout("location.href=‘"+url+"‘", 1500);
	}else{
		 setTimeout(‘$("#msg").fadeOut()‘, 1500);
	}
}
tishi(‘留言成功‘);

移动端 一个简单易懂的弹出框

原文:http://www.cnblogs.com/phpjinggege/p/5646266.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!