css控制div的显示和div的显示位置和式样的代码
来源:互联网 发布:unity保卫萝卜源码 编辑:程序博客网 时间:2024/05/22 14:34
<html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<style>
.black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style>
</head>
<body>
<p>可以根据自己要求修改css样式<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">点击这里打开窗口</a></p>
<div id="light" class="white_content">
This is the lightbox content.
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
Close</a></div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<style>
.black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style>
</head>
<body>
<p>可以根据自己要求修改css样式<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">点击这里打开窗口</a></p>
<div id="light" class="white_content">
This is the lightbox content.
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
Close</a></div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
0 0
- css控制div的显示和div的显示位置和式样的代码
- div显示滚动条和控制滚动条属性的css代码
- div显示滚动条和控制滚动条属性的css代码
- DIV 控制:内容的显示和隐藏
- js控制div的隐藏和显示
- div的visibility可以控制div的显示和隐藏
- CSS DIV层的显示和隐藏
- div显示滚动条的css代码
- div 显示滚动条的CSS代码
- 有关div的位置,隐藏显示和移动
- div的显示和隐藏
- DIV 的显示和隐藏
- div的显示和隐藏
- div的显示和隐藏
- div的显示和消失
- div的显示和隐藏
- 用JavaScript控制DIV的显示和隐藏
- javascript 控制 DIV等html元素的显示和隐藏
- nested exception is org.hibernate.exception.SQLGrammarException: could not get next sequence value
- 笔试面试中基础知识点总结概要篇
- 通过JNDI从服务器容器中获取资源_Spring JNDI+Mysql+Tomcat
- 专题开发十二:JEECG微云快速开发平台-基础用户权限
- 使用Zipalign优化Android apk应用程序
- css控制div的显示和div的显示位置和式样的代码
- [OPENCV] Learning Notes
- IIS运行.NET4.0配置
- 黑马程序员_飞行棋项目完整
- SQL四种语言:DDL,DML,DCL,TCL
- UITableVeiw空白的Cell设置空
- org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl..
- 嵌入式工程师面试题目
- 翻译(handleAndroid Async http)