DIV+CSS:用CSS模拟窗口显示效果;
来源:互联网 发布:妇科网络咨询技巧 编辑:程序博客网 时间:2024/05/16 09:32
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>用CSS模拟窗口显示效果</title>
<style type="text/css">
div.window {
position: absolute; /*绝对定位*/
width: 300px; height: 200px;
border: 3px outset gray;
}
div.titlebar {
position: absolute;
top: 0px; height: 18px; width: 290px;
background-color: #aaa;
border-bottom: groove gray 2px;
padding: 3px 5px 2px 5px;
font: bold 11pt sans-serif;
}
div.content {
position: absolute;
top: 25px; height: 165px; width: 290px;
padding: 50x;
overflow: auto;
background-color: #ffffff;
}
div.translucent { /*实现半透明效果*/
opacity: .75; /*standard style*/
-moz-opacity: .75; /*older Mozillas*/
filter: alpha(opacity=75); /*IE*/
}
</style>
</head>
<body>
<div class="window" style="left: 10px; top: 10px; z-index: 10;">
<div class="titlebar">TextWindow</div>
<div class="content">
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0<br>
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0<br>
</div>
</div>
<div class="window" style="left: 75px; top: 110px; z-index: 20;">
<div class="titlebar">AnotherWindow</div>
<div class="content translucent" style="background-color: #d0d0d0; font-weight: bold;">
This is another window. Its <tt>z-index</tt> puts it on top of the other one. CSS styles make its content area
translucent, in browsers that support that.
</div>
</div>
</body>
</html>
<html>
<head>
<title>用CSS模拟窗口显示效果</title>
<style type="text/css">
div.window {
position: absolute; /*绝对定位*/
width: 300px; height: 200px;
border: 3px outset gray;
}
div.titlebar {
position: absolute;
top: 0px; height: 18px; width: 290px;
background-color: #aaa;
border-bottom: groove gray 2px;
padding: 3px 5px 2px 5px;
font: bold 11pt sans-serif;
}
div.content {
position: absolute;
top: 25px; height: 165px; width: 290px;
padding: 50x;
overflow: auto;
background-color: #ffffff;
}
div.translucent { /*实现半透明效果*/
opacity: .75; /*standard style*/
-moz-opacity: .75; /*older Mozillas*/
filter: alpha(opacity=75); /*IE*/
}
</style>
</head>
<body>
<div class="window" style="left: 10px; top: 10px; z-index: 10;">
<div class="titlebar">TextWindow</div>
<div class="content">
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0<br>
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0<br>
</div>
</div>
<div class="window" style="left: 75px; top: 110px; z-index: 20;">
<div class="titlebar">AnotherWindow</div>
<div class="content translucent" style="background-color: #d0d0d0; font-weight: bold;">
This is another window. Its <tt>z-index</tt> puts it on top of the other one. CSS styles make its content area
translucent, in browsers that support that.
</div>
</div>
</body>
</html>
- DIV+CSS:用CSS模拟窗口显示效果;
- div+css模拟弹出窗口
- 用css+div+javascript模拟模态窗口
- javascript+div+css模拟alert效果和confirm效果
- css+div模拟进度条
- DIV+CSS 斜线效果
- DIV+CSS投影效果
- 使用div+css模拟select功能与效果
- css模拟表格效果
- 使用css和最少的javascript用div模拟弹出窗口(Lightbox, Greybox, Thickbox)
- 用div+css模拟表格对角线
- 用div css模拟表格对角线
- css显示隐藏div
- 用div+css实现table效果
- 用CSS+DIV实现下拉菜单效果
- DIV+CSS实现的拖动+隐藏/显示效果+背景变暗
- 用CSS模拟不同的拐角效果
- CSS显示三角符号等视觉模拟效果
- 树节点创建
- document.createElement()的用法
- 开发管理 CheckLists(3) -项目启动会议
- 虚拟机修改机器名后,Websphere不能正常启动
- replaced element解释
- DIV+CSS:用CSS模拟窗口显示效果;
- android上改变listView的选中颜色
- 某省交通厅高速公路巡逻监控方案(组图)
- 如何单独编译Android源代码中的模块
- PCM音频
- 用delphi开发activex打印控件
- Delphi中的线程类的分析
- ZeroMQ 消息内核
- 邮箱MX查询