Home >Web Front-end >HTML Tutorial >Pop-up mask, meta content meaning_html/css_WEB-ITnose

Pop-up mask, meta content meaning_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:55:271064browse

<span style="font-size:12px;"><meta http-equiv="Content-Type"content="text/html; charset=utf-8">//编码<meta id="viewport"name="viewport"content="width=320; initial-scale=1.0;maximum-scale=1.0; user-scalable=no;"/> <meta name=”apple-mobile-web-app-capable” content=”yes” />// 离线应用的另一个技巧     <meta name=”apple-mobile-web-app-status-bar-style” content=black” />// 隐藏状态栏       <meta content="black"name="apple-mobile-web-app-status-bar-style"/>//指定的iphone中safari顶端的状态条的样式        <meta content="telephone=no"name="format-detection"/>//告诉设备忽略将页面中的数字识别为电话号码<style media="all and (orientation:portrait)"type="text/css">#landscape { display: none; }</style>//竖屏时使用的样式<style media="all and (orientation:landscape)"type="text/css">#portrait { display: none; }</style>//横屏时使用的样式</span>

Rendering:

html:

The principle is Add a hidden DIV layer with id="brg" and a width and height of 100% on the masked layer. This layer will be displayed when a button is clicked, so that the masked layer cannot be clicked and the focus is lost. Set the Z-axis position of the popped-up layer (determination window): Z-INDEX is the highest.

<span style="font-size:12px;"><div id="brg"></div><div id="showdiv"><div class="btn"><a href="#" id="close"><span >取消</span></span></a></div></div><a href="#" id="lay"><span>确定</span></a></span>

#brg{width:100%; height:100%;filter:alpha(opacity=60); -moz-opacity:0.6; opacity: 0.6; display:none;}#showdiv{z-index:20; display:none; }

2014-8-19: New Mask layer implementation: compatible with ie6:

<div id="brg"></div><div class="vip_none"><div class="close_btn"><a href="javascript:void(0)" id="close_btn"><img src="images/close_btn.png" height="23" width="23"></a></div><p>VIP充值尚未开放<br><br> 敬请期待~</p></div>

 

*html { background: url(*) fixed; }body { _background: url(about:blank) fixed;}.vip_none{width: 400px;height: 250px;background:#fff;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius: 7px;    z-index: 1002;    display: none;    position:absolute;    top: 30%;    left: 38%;    overflow: auto; }.close_btn{height: 40px;background: #f2f2f2;    -webkit-border-radius:7px 7px 0 0;    -moz-border-radius:7px 7px 0 0;    border-radius:7px 7px 0 0;     -webkit-box-shadow: 0 1px #e0dfdf;    -moz-box-shadow: 0 1px #e0dfdf;    box-shadow:  0 1px #e0dfdf;    margin: 1px 1px 0 1px;}.close_btn img{    float: right;    margin-top: 8px;    margin-right: 8px;    border:0;}.vip_none p{    font-size: 32px;    color: #505050;    -webkit-text-shadow: 1px 0px #bbbbbb;    -moz-text-shadow: 1px 0px #bbbbbb;    text-shadow: 1px 0px #bbbbbb;    text-align: center;    margin-top: 60px;    }#brg{    overflow: hidden;     width:100%;     height:100%;     background:#ccc;     position:fixed;     top:0;     left:0;     filter:alpha(opacity=60);     -moz-opacity:0.6;     opacity: 0.6;     display:none;    z-index:1000;    _position:absolute;    _height:6100px;    _width:2000px;    _left:0;    _top:0;}

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn