当前位置: 主页->网页制作->CSS层叠样式表->正文
相关文章
·web标准的商业价值
·CSS2盒模型的3D示意图
·通向web标准之路
·初学web标准的几个误区
·XHTML基础问答
·怎么改善现有网站
·为什么要建立网站标准
·WEB标准
·css布局中的居中问题
·为什么要抛弃HTML
·表格对决CSS--一场生死之战
·学习CSS的10大理由
·简单实用的网页表格特效
·谈Filter在网页中的运用

简单实用的网页表格特效

http://www.yy0736.com 加入日期:2004.11.03 点击数:

[大字体 中字体 小字体]

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

  一、彩色虚线表格

线

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

作者:黄明华 出处:天极设计在线

上一页 1 2 3 下一页

   

上篇:在IE和NS中调用层的区别 下篇:典型的三行二列居中高度自适应布局


[夜鹰论坛] [我要留言] [关闭窗口] [ ][TOP]