纯CSS制作的网页中的lightbox效果
来源:互联网 发布:积分怎么编程 编辑:程序博客网 时间:2024/05/17 22:12
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>纯CSS Lightbox效果webjx.com</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>This is the main content. To display a lightbox click <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</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>
<html>
<head>
<title>纯CSS Lightbox效果webjx.com</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>This is the main content. To display a lightbox click <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</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>
- 纯CSS制作的网页中的lightbox效果
- 纯CSS Lightbox效果
- 纯CSS Lightbox效果
- 纯实现的CSS lightbox效果
- 纯CSS Lightbox效果_Div+CSS教程
- 纯CSS制作的图形效果
- 纯CSS制作液晶屏的显示效果
- 纯css制作网页轮播图
- 无javascript,纯CSS制作的网页下拉菜单
- 无javascript,纯CSS制作的网页下拉菜单
- 纯CSS制作网页导航栏
- 纯css 制作音谱跳动效果
- 纯CSS Lightbox效果 (无需JS)-弹出层-背景变灰
- 纯CSS制作的新闻网站中的文章列表
- 纯CSS制作的新闻网站中的文章列表
- WordPress的lightbox 效果
- 纯CSS的遮挡效果
- 纯JS制作的窗户雨滴效果
- 系统时间大全,待整理
- 【推荐】DLL反编译网站,绝对满意
- c#操作数据库
- awk使用实例
- List Feature ID
- 纯CSS制作的网页中的lightbox效果
- javascrip应用大全
- 对财务预警管理的阐述
- 天极网软件频道的用JS实现的图片切换特效
- 让vb6的数据表格可以输出多层表头
- ATL 调用MFC扩展dll
- 仿Office 2003的工具条[网页特效]
- python 宝典 笔记 第十二章 存储数据和对象 (各种对象转换成字符串)
- Shorthand:Path and lists, and @keywords学习笔记