资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
简单实用的网页表格特效
<BODY> 一、彩色虚线表格 <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> <p></p> 二、鼠标指向单元格变色 <table width="200" border="1" cellspacing="0" cellpadding="0"> <tr> <td <I>onmouse</I>out="this.style.backgroundColor=''" <I>onmouse</I>over="this.style.backgroundColor='#FFcccc'">单元格变色</td> </tr> <tr> <td <I>onmouse</I>out="this.style.backgroundColor=''" <I>onmouse</I>over="this.style.backgroundColor='#FFccaa'">单元格变色</td> </tr> </table> <p></p> 三、立体表格 <table border="1" bordercolorlight="#ffffff" bordercolordark="#ffffff" width="200" cellpadding="0" cellspacing="0"> <tr align="center"> <td width="86" bordercolorlight="#000000" bordercolordark="#eeeeee" bgcolor="#B7B7B7" >立体</td> <td width="108" bordercolorlight="#000000" bordercolordark="#eeeeee" bgcolor="#B7B7B7" >表格</td> </tr> </table> <p></p> 四、表格嵌套 1、利用表格的间距来做嵌套 <P></P> <P><table width="200" border="1" cellspacing="4" cellpadding="0"> <tr> <td>嵌套</td> <td>嵌套</td> <td>嵌套</td> </tr> </table> <p></p> 2、充分利用根据表格对齐的方式 <table width="200" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000"> <tr> <td><table width="60" border="1" align="left" cellpadding="0" cellspacing="0"> <tr> <td>表格对齐</td> </tr> </table> <table width="60" border="1" align="right" cellpadding="0" cellspacing="0"> <tr> <td>表格对齐</td> </tr> </table> <table width="80" border="1" align="center" cellpadding="0" cellspacing="0"> <tr> <td>表格对齐</td> </tr> </table></td> </tr> </table> <p></p> 五、半透明表格 <style type="text/css"> <!-- .bg { background-color: #66CCFF; filter: Alpha(Opacity=20); } --> </style> <table width="200" border="0" cellpadding="0" cellspacing="0" class="bg"> <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> <p></p> 六、阴影表格 <div style="filter:shadow(color=#cccccc,direction=120);width:300;padding-right:10;padding-bottom:10"> <table width=300 border=1 bgcolor=#EAEAEA> <tr><td width="93">111</td><td width="91">222</td><td width="94">333</td></tr> </table> </div> </BODY> </P>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程