http://bbs.blueidea.com/thread-2964362-1-1.html
<style>
body{
margin:0px;
padding:0px;
font-size:14px;
}
#t {
position:absolute;
float:left;
left:0px;
top:0px;
}
#a {
float:left;
}
.al {
opacity: 0.80;
filter : progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=80,finishOpacity=100);
}
.al2{
opacity: 0.00;
filter : progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0,finishOpacity=100);
}
U {
DISPLAY: block;
OVERFLOW: hidden;
HEIGHT: 1px
}
U.f1 {
background-color:#5cc;
BACKGROUND: #5cc;
MARGIN: 0px 3px
}
U.f2 {
background-color:#5cc;
BORDER-RIGHT: #5cc 2px solid;
MARGIN: 0px 1px;
BORDER-LEFT: #5cc 2px solid
}
U.f3 {
background-color:#5cc;
BORDER-RIGHT: #5cc 1px solid;
MARGIN: 0px 1px;
BORDER-LEFT: #5cc 1px solid
}
.d_top{
clear:both;
overflow:hidden;
background-color:#5cc;
height:29px;
vertical-align:bottom;
}
.d_top a{
float:right;
margin-top:5px;
margin-right:13px;
padding-top:3px;
width:18px;
color:red;
background-color:#789;
text-decoration:none;
font-weight:bold;
text-align:center;
vertical-align:middle;
}
.d_top span{
float:left;
font-size:13px;
margin-left:15px;
margin-top:8px;
}
.d_body {
BORDER-RIGHT: #5cc 3px solid;
BORDER-LEFT: #5cc 3px solid;
padding:10px;
height:200px;
background-color:#fff;
}
.d_foot{
clear:both;
overflow:hidden;
background-color:#5cc;
height:2px;
}
</style>
<script type="text/javascript">
function $(id){return document.getElementById(id);}
function show(id){
var t = $(id);
t.style.width=document.body.clientWidth;
t.style.height=document.body.clientHeight;
window.onresize=function(){
t.style.width=document.body.clientWidth;
t.style.height=document.body.clientHeight;
}
$(id).style.display="";
}
function cl(id){
$(id).style.display="none";
}
//-------------------------------------------------------------------------------
function moveEvent(e,id){
var isIE = (document.all)?true:false;
//navigator.userAgent.toLowerCase().indexOf("msie") != -1;
//var event=window.event||event;
drag = true;
xx=isIE?event.x:e.pageX;
yy=isIE?event.y:e.pageY;
L = document.getElementById(id).offsetLeft;
T = document.getElementById(id).offsetTop;
document.onmousemove = function(e) {
if (drag) {
x=isIE?event.x:e.pageX; if(x<0)x=0;
y=isIE?event.y:e.pageY; if(y<0)y=0;
document.getElementById(id).style.left = L-xx+x;
document.getElementById(id).style.top = T-yy+y;
}
}
document.onmouseup=function(){
drag = false;
}
}
//-------------------------------------------------------------------------------
window.onscroll=function(){
$("back_div").style.width=document.body.scrollWidth;
$("back_div").style.height=document.body.scrollHeight;
}
</script>
<body>
<div id="a" style="position:absolute; left:300px; top:200px;">
<a href="javascript:" onClick="show('t')">点我</a>
<select></select><select></select><select></select><select></select>
<select></select><select></select><select></select><select></select>
<select></select><select></select><select></select><select></select>
<select></select><select></select><select></select><select></select>
</div>
<div id="t" style="display:none;">
<div style="width:100%;height:100%; z-index:-1; position:absolute; float:left; background-color:#555;overflow:hidden;" class="al" id="back_div">
<iframe style="position:absolute; left:0px; top:0px; left:0px; bottom:0px; float:left; z-index:-1; margin:0px; padding:0px;" frameborder="0" scrolling="no" width="100%" height="2000px;" class="al2" id="ifr"></iframe>
</div>
<DIV style="WIDTH: 500px; position:absolute;float:left;top:25%; left:30%; z-index:999; clear:both; overflow:hidden;" id="t_div">
<iframe style="position:absolute; left:0px; top:0px; left:0px; bottom:0px; float:left; z-index:-1; margin:0px; padding:0px;" frameborder="0" scrolling="no" width="100%" height="2000px;" class="al2" id="ifr"></iframe>
<U class="f1"></U><U class="f2"></U><U class="f3"></U>
<div class="d_top" onMouseDown="moveEvent(event,'t_div')">
<span>测试弹出div</span>
<a href="javascript:" onClick="cl('t')">×</a>
</div>
<DIV class="d_body" >
CSS圆角
</DIV>
<div class="d_foot"></div>
<U class="f3"></U><U class="f2"></U><U class="f1"></U>
</DIV>
</div>
</body>
分享到:
相关推荐
漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div 漂亮遮罩层css+div ...
利用div+css制作弹出层并遮罩层,主用用了两个div,一个div用于弹出框,另一个则遮罩整个页面
CSS+DIV+JQuery实现遮罩效果,资源齐全。效果很好!
培训资料CSS+div建站基本教程,PPT格式. 培训资料CSS+div建站基本教程,PPT格式.
css+div漂亮的圆角tab选项卡css+div漂亮的圆角tab选项卡css+div漂亮的圆角tab选项卡
CSS+DIV 布局 主要是一个网上书店的模板 精美布局 只要想的到 就能做得到
用css+div写的带圆角的窗口
div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子div+css例子...
div+css百分比表格+DIV+CSS+JS静态分页程序+DIV+CSS像素表格 百分比表格(用DIV+CSS)以百分比显示,可以根据窗口的大小自动调节所显示的大小! DIV+CSS+JS静态分页程序可兼容主流浏览器(IE、FF、Opera) DIV+CSS表格...
CSS+DIV光盘程序CSS+DIV光盘程序CSS+DIV光盘程序CSS+DIV光盘程序CSS+DIV光盘程序
后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 css+div+html后台模板 ...
第1部分 CSS基础知识篇 第1章 CSS的初步体验 1.1 CSS的概念 1.2 使用CSS控制页面 1.3 体验CSS 第2章 CSS的基本语法 2.1 CSS选择器 2.2 选择器声明 2.3 CSS的继承 第3章 用...
html+div+css+js学习html+div+css+js学习html+div+css+js学习 html+div+css+js学习html+div+css+js学习html+div+css+js学习 html+div+css+js学习html+div+css+js学习html+div+css+js学习 html+div+css+js学习...
Div+CSS层完美实现拖拽特效 Div+CSS 层拖拽 移动层 Div拖动特效 可应用于弹出层拖拽
div +cssdiv +cssdiv +cssdiv +cssdiv +cssdiv +cssdiv +cssdiv +cssdiv +cssdiv +css
精通CSS+DIV网页样式与布局.rar精通CSS+DIV网页样式与布局.rar精通CSS+DIV网页样式与布局.rar精通CSS+DIV网页样式与布局.rar精通CSS+DIV网页样式与布局.rar精通CSS+DIV网页样式与布局.rar精通CSS+DIV网页样式与布局....
CSS+DIV布局案例CSS+DIV布局案例CSS+DIV布局案例CSS+DIV布局案例
CSS+DIV 20个经典实例(上)CSS+DIV 20个经典实例(上)CSS+DIV 20个经典实例(上)CSS+DIV 20个经典实例(上)CSS+DIV 20个经典实例(上)CSS+DIV 20个经典实例(上)CSS+DIV 20个经典实例(上)
透明div可以拖动 Jquery特效,CSS+DIV透明div可以拖动 Jquery特效,CSS+DIV透明div可以拖动 Jquery特效,CSS+DIV
jsp css+div 后台框架 jsp css+div 后台框架 jsp css+div 后台框架 jsp css+div 后台框架 比较完美的后台框架