您的位置:首页 > 理论基础 > 计算机网络

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐