IE與Firefox都能顯示的半透明 http://blog.csdn.net/DDYanHui/archive/2007/03/20/1534471.aspx

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章