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

Dreamweaver
用表格巧妙制作导航条按钮
Dreamweaver处理word文档有妙招
给你的网页盖个章
Dreamweaver快速编辑网页标签
如何制作会移动的广告条
小诀窍让你快速上手Dreamweaver
网站的多人协作管理(下)
Dreamweaver表格经验谈
让css使网页图片半透明
Dreamweaver初学者常见问题解答
DW中如何使用Library
网站的多人协作管理(上)
Dreamweaver行为体验
为你的站点定做颜色
快速图片链接批处理
十“问”DreamWeaver
网站更新短平快
为你的网页添加背景音乐
网页菜单详解(3):样式修饰
网页色彩搭配内涵

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-23   浏览: 58 ::
收藏到网摘: 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>