国产探花免费观看_亚洲丰满少妇自慰呻吟_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下一頁
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 玉溪市| 亳州市| 吉木乃县| 比如县| 当阳市| 乡宁县| 车险| 寿宁县| 宿迁市| 响水县| 宜黄县| 巴塘县| 茂名市| 图片| 邢台县| 东海县| 万盛区| 临邑县| 浮山县| 平凉市| 万年县| 泽库县| 延吉市| 读书| 苏尼特右旗| 临江市| 若尔盖县| 新建县| 博湖县| 永和县| 峨山| 铜山县| 达拉特旗| 巴楚县| 邹城市| 专栏| 武冈市| 杭州市| 巴塘县| 勐海县| 若羌县|