Home > Web Front-end > HTML Tutorial > 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
Release: 2016-05-16 16:38:06
Original
1308 people have browsed it

复制代码
代码如下:





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






代码全在上面了,可以复制试试...弹出层的大小可以设置,也可以比例化
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template