css+JS实现遮罩弹框】的更多相关文章

<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://www.softwhy.com/" /> <title>蚂蚁部落</title> <style type="text/css"> #fade { disp…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>html+css+js实现复选框全选与反选</title> <meta http-equiv="content-type" conten…
JS部分 <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> <script type="text/javascript"> jQuery(document).ready(function ($) { if (window.history && window.history.pushState) { $(window).on('p…
// 功能提示弹框 function tipsBox ( option ) { var html = ''; if ( option.type == 'success' ) { html += '<div class="message-box-body" data-type="success">'+ option.message +'</div>'; } else if ( option.type == 'error' ) { html +=…
首先用css渲染一个样式 #msg{ height: 2rem; text-align: center; position: fixed; top: 50%; margin-top: -1rem; line-height: 2rem; width: 100%; } #msg span{ color: #fff; background: rgba(0,0,0,0.6); height: 2rem; display: inline-block; padding: 0 3rem; border-rad…
var data = [{ "login_advertTitle": "即使生活琐碎,也要活得优雅", "login_advertCont": "<html>\r\n<head>\r\n\t<title></title>\r\n</head>\r\n<body>\r\n<p style=\"padding: 10px 0px; margin: 0px…
在页面上显示一个遮罩层,这是非常常见的操作,在遮罩层上操作,下层也会默认跟随手指滚动 此处就是要在显示遮罩的时候禁止下层滚动. 首先设置一个全局变量 var canScroll=false; 页面初始化的时候添加事件监听 document.addEventListener('touchmove',function(e){             if(!canScroll){                 e.preventDefault()             }         })…
JSP页面代码如下: <%@ page language="java" contentType="text/html; charset=UTF-8"%><%@page import="java.util.List"%><%@page import="com.ycy.blog.entity.Blog"%><!DOCTYPE html PUBLIC "-//W3C//DTD XH…
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GBK"> <title>群组设置</title> <style> .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height:…
1.单纯的关闭window.opener.location.reload(); //刷新父窗口中的网页window.close();//关闭当前窗窗口2.提交后关闭 function save(){document.getElementById("pointsform").submit();alert('保存成功');window.opener.document.getElementById("cmd").value="query";window…