图片效果如下 淡入 淡出。自适应居中。

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

 function tishi(content,url) {
        $(".xiaoxi").remove();
	var html = '<div class="xiaoxi none" ></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('留言成功');

相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2021-09-06
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2021-11-15
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-07-13
  • 2021-06-16
相关资源
相似解决方案