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

Dreamweaver
用户登录的实现-Dreamweaver构建Blog
事件日历-Dreamweaver构建Blog
把BLOG上传到远程空间-Dreamweaver构建Blog
DW MX 2004网页中文乱码问题:常见原因
DW MX 2004网页中文乱码问题:尝试解决
DW MX 2004网页中文乱码问题解决
用Dreamweaver实现不同分辨率下的层定位
用Dreamweaver实现漫天花雨效果
下拉菜单做翻页的通用代码
应用CSS样式表技巧两则
定时自动关闭的窗口
DreamWeaver,经典(一)
DreamWeaver,经典(二)
在DreamWeaver中应用CSS样式表
用 iframe 解决下拉框与层之冲突
一种细腻的导航效果的制作方法
Dreamweaver中幂格式文本巧实现
Dreamweaver技巧锦集17条
Dreamweaver技巧大放送前六招
Dreamweaver技巧大放送后六招

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


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