IE与Firefox都能显示的半透明 http://blog.csdn.net/DDYanHui/archive/2007/03/20/1534471.aspx
2007-12-04 16:59
507 查看
<!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=gb2312" />
<title>IE与Firefox都可以显示半透明</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:178px;
height:97px;
z-index:1;
left: 8px;
top: 13px;
FILTER: alpha(opacity=60); /* IE使用的半透明 */
-moz-opacity: 0.6; /* Firefox使用的半透明 */
background-color: #0066FF;
}
-->
</style>
</head>
<body>
<p>test test test</p>
<p>test test test</p>
<div id="Layer1"></div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>IE与Firefox都可以显示半透明</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:178px;
height:97px;
z-index:1;
left: 8px;
top: 13px;
FILTER: alpha(opacity=60); /* IE使用的半透明 */
-moz-opacity: 0.6; /* Firefox使用的半透明 */
background-color: #0066FF;
}
-->
</style>
</head>
<body>
<p>test test test</p>
<p>test test test</p>
<div id="Layer1"></div>
</body>
</html>
相关文章推荐
- IE和Firefox中Javascript和CSS的区别(轉:http://blog.csdn.net/superbeck/archive/2008/10/16/3082550.aspx)
- Android应用程序使用Google Map (转http://blog.csdn.net/iefreer/archive/2009/09/20/4572879.aspx)
- JFreeChart画雷达图、带刻度雷达图、蜘蛛网、带刻度蜘蛛网(转自:http://blog.csdn.net/guoquanyou/archive/2008/12/10/3488313.aspx)
- 转:超级实用且不花哨的js代码大全(http://blog.csdn.net/panxuan/archive/2007/11/26/1902826.aspx)
- 用开源组件jcaptcha做jsp彩色验证码 ( 转http://blog.csdn.net/alexjjf/archive/2006/10/31/1359333.aspx)
- window.event(转自:http://blog.csdn.net/cnkiminzhuhu/archive/2008/02/22/2112408.aspx)
- HTML_SAP(http://blog.csdn.net/compassbutton/archive/2007/12/24/1964772.aspx)
- opencore的文件识别(http://blog.csdn.net/jinlking/archive/2009/04/20/4095415.aspx)
- http://blog.csdn.net/ezerg/archive/2004/10/24/149278.aspx
- ASP.net输出JS脚步的类(无AJAX框架)(原作者发布地址http://blog.csdn.net/zhoufoxcn/archive/2008/04/21/2312440.aspx)
- MTK task (原文 http://blog.csdn.net/yanwuxufeng/archive/2010/07/24/5762361.aspx)
- BLOG风格设置 摘自 http://blog.csdn.net/maow/archive/2004/10/30/159893.aspx
- Windows消息机制http://blog.csdn.net/weixu_2008/archive/2007/09/15/1785939.aspx
- http://blog.csdn.net/web518/archive/2005/04/21/356322.aspx
- SQL Server临时表(转) (转自:http://blog.csdn.net/zh520/archive/2009/04/17/4087943.aspx)
- 使用CSS3构建Ajax加载动画(转http://blog.csdn.net/hfahe/archive/2011/02/10/6177825.aspx)
- WinCE中nandflash驱动开发介绍(转自http://blog.csdn.net/nanjianhui/archive/2008/03/16/2187206.aspx)
- SQL Server的相关注册表项使用技巧六则(转http://blog.csdn.net/billpu/archive/2010/09/27/5909937.aspx)
- eclipse_plugin(http://blog.csdn.net/chrython/archive/2006/10/29/1355453.aspx)
- 如何将Web应用打包成.war文件? 转自:http://blog.csdn.net/code_JAVA/archive/2008/05/19/2457749.aspx