簡單實用的網頁表格特效(2)_Dreamweaver教程
}
-->
<table width="200" border="0" cellpadding="0" cellspacing="0" class="bg">
<tr>
<td><div align="center">半</div></td>
<td><div align="center">透明</div></td>
</tr>
<tr>
<td><div align="center">表</div></td>
<td><div align="center">格</div></td>
</tr>
</table>
六、陰影表格
111 222 333
這里主要用到了CSS濾鏡style="filter:shadow(color=#cccccc,direction=120);width:300;padding-right:10;padding-bottom:10"
<div style="filter:shadow(color=#cccccc,direction=120);width:300;padding-right:10;padding-bottom:10">
<table width=300 border=1 bgcolor=#EAEAEA>
<tr><td width="93">111</td><td width="91">222</td><td width="94">333</td></tr>
</table>
</div>
附:插入CSS樣式的方法(我們這里用半透明表格來做說明)
第一種方法是定義一個CSS名稱。
比如
<style type="text/css">
<!--
.bg {
background-color: #66CCFF;
filter: Alpha(Opacity=20);
}
-->
元素需要用到CSS的時候,比如表格,定義一個CLASS就可以了,如
<table width="200" border="0" cellpadding="0" cellspacing="0" class="bg">
第二種是直接在你需要用到CSS元素的地方插入相關代碼,style=""如:
<table width="201" border="1" style="filter: Alpha(Opacity=20);background-color: #66CCFF;">
- 相關鏈接:
- 教程說明:
Dreamweaver教程-簡單實用的網頁表格特效(2)。