<!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>