div背景透明样式
来源:互联网 发布:linux 文件夹权限 777 编辑:程序博客网 时间:2024/05/22 13:15
样式代码:
.alert{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */
opacity: 1.0; height:300px; width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;margin-left:-250px;position:absolute;z-index:99; text-align:center; padding:20px;}
使用方法:
<div class=”alert”>
背景透明
</div>
html代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-
equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一流素材网</title>
<style type="text/css">
.alert
{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */ opacity: 1.0; height:300px; width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;margin-left:
-250px;position:absolute;z-index:99; text-align:center; padding:20px}
</style>
</head>
<body>
<div class="alert">一流素材网</div>
</body>
</html>
.alert{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */
opacity: 1.0; height:300px; width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;margin-left:-250px;position:absolute;z-index:99; text-align:center; padding:20px;}
使用方法:
<div class=”alert”>
背景透明
</div>
html代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-
equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一流素材网</title>
<style type="text/css">
.alert
{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */ opacity: 1.0; height:300px; width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;margin-left:
-250px;position:absolute;z-index:99; text-align:center; padding:20px}
</style>
</head>
<body>
<div class="alert">一流素材网</div>
</body>
</html>
0 0
- div背景透明样式
- CSS+DIV背景透明
- div 背景透明
- div背景透明
- html div 透明样式
- DIV背景半透明 样式
- CSS3透明背景+渐变样式
- IE+火狐 div背景透明
- div+css实现背景透明
- android dialog 背景透明的样式
- Dialog 设置背景完全透明的样式
- html设置控件的背景样式,透明
- DIV在FLASH上面、FLASH透明背景
- DIV在FLASH上面、FLASH透明背景
- IE7 中 div 背景透明的问题
- DIV在FLASH上面、FLASH透明背景
- 对于div背景颜色的透明
- DIV+CSS 实现背景透明,文字不透明
- SOCKET 介绍
- The C++ In-Depth Series
- 基于机器学习方法的POI品类推荐算法
- 添加用户时 在后台判断此用户是否已经存在
- ARC指南3 - @property
- div背景透明样式
- 搭建ssh 遇到的一些奇怪的问题。分享给大家
- sandbox机制 读取系统目录
- 关于电视扫描线
- java设计模式----单例模式Singleton(一)
- 机器学习经典算法详解及Python实现–K近邻(KNN)算法
- 导入证书
- Delphi Fans的福音---Delphi XE7:为移动而生
- extern “C”