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

Dreamweaver
Dreamweaver8创建自定义代码片段
Dreamweaver8实现网页区域选择显示
Dreamweaver合理为为网页进行优化
DreamweaverCS3最新功能简单描述
Dreamweaver制作、套用模板技巧
Dreamweaver网页制作教程:层及其应用
使用Dreamweaver8在网页中轻松插入Flash视频
使用Dreamweaver8对网站文件进行检查和整理
Dreamweaver8技巧:查找和替换的应用
Dreamweaver 8 轻松制作漂亮的Flash像册
Dreamweaver CS3新功能描述
Dreamweaver CS3集成Spry效果试用
Dreamweaver CS3集成Spry之表单检测试用
用Spry轻松将XML数据显示到HTML页
Dreamweaver巧用标签选择器
用Dreamweaver快速批处理图片链接
Dreamweaver轻松快速打造Flash相册
DreamWeaver中应用CSS样式表
Dreamweaver中45个经典问答收集
新手入门:制作网站必须了解的技术

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


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