• 弹出框居中显示


    function showdialog() {
    					document.getElementsByTagName('body')[0].scrollTop = 0;
    				var bh = $("body").height(); 
                   var bw = $("body").width(); 
                   $("#zzdiv").css({ 
                   height:bh, 
                   bw, 
                   display:"block" 
                  });
    				document.getElementById("boxdiv").style.display = "block";
    				document.getElementById("tsdialog").textContent = "您确定选中的运单审核通过?"
    
    				
    			}
    

      

    .boxdiv{ display: none;  300px; height: auto; background: #FFFFFF; top: 50%; left: 50%; margin-left: -150px;margin-top: -85px; position: fixed; z-index:10001;}
    .boxheader{  300px; height: 40px; line-height: 40px; color: #FFFFFF; font-size: 16px; background: #4A9900; text-indent: 1em;}
    .boxcontent{ color: #333333; font-size: 14px; line-height: 25px;  text-align: center; margin-top: 10px; margin-top: 30px; padding: 0 20px 0 20px;}
    .boxbtn{  300px; height: 40px; line-height: 40px; font-size: 12px; border-top: 1px #CCCCCC solid; margin-top: 30px;}
    .boxbtn a{ color: #333333; text-decoration: none;}
    .qxbtn{ display: block; float: left;  149px;border-right: 1px #CCCCCC solid; text-align: center; } 
    .surebtn{display: block; float: right;  149px; text-align: center; }
    .black{display: none;  100%; height:100%;position: absolute; top: 0; left: 0; background: #888; opacity: 0.5;-webkit-opacity: 0.5; -moz-opacity: 0.5;z-index:10000}
    

      

    <div class="boxdiv" id="boxdiv">
    			<div class="boxheader">提示</div>
    			<div class="boxcontent" id="tsdialog"></div>
    			<div class="boxbtn">
    				<a href="#" class="qxbtn" onclick=" clicksure()">取消</a>
    				<a href="#" class="surebtn" id="surebtn" onclick=" clicksure()">确定</a>
    			</div>
    		</div>
    		<div class="black" id="zzdiv" style="z-index: 100;"></div>
    

      

  • 相关阅读:
    PHP 类的继承问题
    爬虫第一章
    如何给CBV添加装饰器
    结巴分词 gensim系数矩阵相似度 pypinyin
    elasticsearch 第二章 elasticsearch的详细用法及参数
    运维自动化 第五章 playbook 模块补充
    运维自动化 第四章 模块
    运维自动化 第三章 ansible
    正则补充
    运维自动化 第二章 openpyxl的用法,读写excel内容
  • 原文地址:https://www.cnblogs.com/dazhangli/p/5765413.html
Copyright © 2020-2023  润新知