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

Dreamweaver
网页设计赏析:易趣网店首页布局分析
Dreamweaver 8 新功能抢先预览
Dreamweaver 8中文版图文快报
分栏及回复的实现-Dreamweaver构建Blog
站点统计-Dreamweaver构建Blog
构建开发环境-Dreamweaver构建Blog
Dreamweaver 8 BETA2版新功能图文快报
站内搜索的实现-Dreamweaver构建BlogBLOG
数据库的设计和连接-Dreamweaver构建Blog
用户注册的实现-Dreamweaver构建Blog
构建Blog全程实录-Dreamweaver构建Blog
首页的实现-Dreamweaver构建Blog
管理员页面的实现-Dreamweaver构建Blog全程实录
巧用Dreamweaver制作复杂交换图像
Dreamweaver MX全新接触(上)
用Dreamweaver为网页图像添特效
用Dreamweaver描摹图像
寻找Dreamweaver鲜为人知的小秘诀
用Dreamweaver制作拖拽效果
用Dreamweaver进行网页优化

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


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