当前位置: 首页 > 图文教程 > 网页制作 > Dreamweaver > 简单实用的网页表格特效

Dreamweaver
表格边框魔鬼教程
Dreamweaver里使用层的一些建议
用 Javascript 写的一个映射表类
在 DW 中插入 Flash 的参数详解
用DW中ToolTip代码改进的提示框
JS 216网页安全色调色板 DW 风格
DW MX 的快键一览表
DW构建Blog全程实录(1)
DW构建Blog全程实录(2)
DW构建Blog全程实录(3)
DW构建Blog全程实录(4)
DW构建Blog全程实录(7)
DW构建Blog全程实录(9)
用DreamweaverMX 做图像热区
DW2004 中文乱码解决方案 [1]
DW2004 中文乱码解决方案 [2]
DW2004 中文乱码解决方案 [3]
Dreamweaver使用快技法十三则 [1]
Dreamweaver使用快技法十三则 [2]
Dreamweaver MX 也要 VSS(一)

Dreamweaver 中的 简单实用的网页表格特效


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-23   浏览: 73 ::
收藏到网摘: n/a

    在我们制作主页的过程中,用到表格的地方非常多,灵活运用表格技巧可以为我们的网页增色不少,这里我就详细介绍几中特效表格的制作方法。

  一、彩色虚线表格

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