Dreamweaver实现网页表格特效的详细代码

资讯 驱动中国 朱丹丹 5,689 次阅读 0 条评论
分享 Q

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

一、彩色虚线表格

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

版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系 editor@qudong.com
本文价值 成为第一个评分的人
登录后为本文打分
网友评论0 条评论
正在回复 的评论取消
评论加载中…
🔐

登录后参与互动

评论、点赞均可赚积分
连续签到、邀请好友也有奖励 🎁

电脑端: 微信扫码登录 微信内: 一键登录

微信扫一扫

打开微信「扫一扫」,分享本文到朋友圈或好友