国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 辦公 > Dreamweaver > 正文

簡單實用的網頁表格特效

2024-09-12 12:31:17
字體:
來源:轉載
供稿:網友

一、彩色虛線表格

虛 線
表 格

<style type="text/css">
<!--
.tab1 {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: dotted;
border-right-style: dotted;
border-bottom-style: dotted;
border-left-style: dotted;
border-top-color: #00CC66;
border-right-color: #0099CC;
border-bottom-color: #FF0000;
border-left-color: #6699FF;
}
-->
</style>
<table width="200" border="0" cellpadding="2" cellspacing="2" class="tab1">
<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>

二、鼠標指向單元格變色
onmouseout="this.style.backgroundColor=’’" 鼠標離開效果onmouseover="this.style.backgroundColor=’#FFcccc’"鼠標放上去的效果,
可以修改#FFcccc的值來改變顏色

<table width="200" border="1" cellspacing="0" cellpadding="0">
<tr>
<td onmouseout="this.style.backgroundColor=’’" onmouseover="this.style.backgroundColor=’#FFcccc’"> </td>
</tr>
<tr>
<td onmouseout="this.style.backgroundColor=’’" onmouseover="this.style.backgroundColor=’#FFccaa’"> </td>
</tr>
</table>
三、立體表格
立體 表格

<table border="1" bordercolorlight="#ffffff" bordercolordark="#ffffff" width="200" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="86"
bordercolorlight="#000000" bordercolordark="#eeeeee" bgcolor="#B7B7B7" >立體</td>
<td width="108"
bordercolorlight="#000000" bordercolordark="#eeeeee" bgcolor="#B7B7B7" >表格</td>
</tr>
</table>

四、表格嵌套

1、利用表格的間距來做嵌套

<table width="200" border="1" cellspacing="4" cellpadding="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
主要是用到間距 cellspacing="4"

2、充分利用根據表格對齊的方式

  這里主要是將第一個表格居左,第二個表格居右,第三個表格居中。這樣當你隨意調整里面三個表格大小的時候,他們的間距將保持不變,非常方便。

<table width="200" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000">
<tr>
<td><table width="60" border="1" align="left" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="60" border="1" align="right" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="80" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
五、半透明表格

半 透明
表 格

  這里主要是用到了CSS濾鏡filter: Alpha(Opacity=20)。

<style type="text/css">
<!--
.bg {
background-color: #66CCFF;
filter: Alpha(Opacity=20);

共2頁上一頁12下一頁
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 白山市| 汝州市| 嘉义县| 阳曲县| 唐海县| 获嘉县| 仁化县| 阜康市| 阿拉善盟| 东宁县| 枝江市| 新建县| 佳木斯市| 于都县| 台安县| 西盟| 武隆县| 南昌市| 名山县| 怀远县| 林州市| 浪卡子县| 洪泽县| 蓬溪县| 教育| 泸定县| 曲松县| 晋州市| 东丰县| 平江县| 仲巴县| 镇雄县| 墨竹工卡县| 修文县| 北海市| 宜黄县| 河西区| 汕尾市| 上虞市| 巴林右旗| 尼木县|