- 代碼:
<style type="text/css" media="screen">
<!--
#main{
background: #000;
filter:Alpha(Opacity=50, FinishOpacity=50, Style=2); /* IE */
-moz-opacity:0.5; /* Moz + FF */
opacity:0.5; /* 支持CSS3的瀏覽器(FF1.5也支持) */
}
-->
</style>
調用時如下:
程序代碼 程序代碼
- 代碼:
<div id="main">
snake
</div>
針對表格的方式:
程序代碼 程序代碼
- 代碼:
<STYLE>table{filter:Alpha(Opacity=50, FinishOpacity=50, Style=2)}</STYLE>