Home  >  Article  >  Web Front-end  >  HTML pop-up transparent layer instance size can be set or scaled_HTML/Xhtml_Web page production

HTML pop-up transparent layer instance size can be set or scaled_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:38:061245browse

复制代码
代码如下:





LIGHTBOX EXAMPLE

<script> <br>function show(tag){ <br>var light=document.getElementById(tag); <br>var fade=document.getElementById('fade'); <br>light.style.display='block'; <br>fade.style.display='block'; <br>} <br>function hide(tag){ <br>var light=document.getElementById(tag); <br>var fade=document.getElementById('fade'); <br>light.style.display='none'; <br>fade.style.display='none'; <br>} <br></script>


打开1
打开2



内容1 内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容





内容2






代码全在上面了,可以复制试试...弹出层的大小可以设置,也可以比例化
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