My FAQ,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > Web开发 > Asp > 综合文章
[原创]table动态改变颜色包括一个边框
作者:未知 时间:2005-03-09 12:12 出处:Blog 责编:MyFAQ
              摘要:暂无

#region 声明
//----------------------------------------------------------------------
//
// 作者: 李淼(Nick.Lee)
//
// table动态改变颜色包括一个边框

// 时间:2005-3-1,我做了两天的效果哦

// boyorgril@msn.com
// QQ:16503096
//注意:引用请标明出处,如果觉得好请up一下或评论一下,谢谢
//----------------------------------------------------------------------
#endregion

<HTML>
<HEAD>
<title>table动态改变颜色包括一个边框</title>
</HEAD>

<form name="Form1" method="post" action="topmenu_main.aspx" id="Form1">

<table style="width: 100%;font-size:9pt;" border=0 cellpadding="0" cellspacing="0" id="datagrid1"><tr><td>

<table style="border: SOLID 1px blue;border-top: -1px;  width: 100%;" cellpadding="0" cellspacing="0">
<tr>
 <td>
  <table width=100% heigh=100% cellpadding="4" cellspacing="1" style="font-size:9pt;">
  <tr bgcolor="#8888BB" align="center" style="color:white;">
   <td style="width:20%;">&nbsp;</td>
          <td style="width:20%;">&nbsp;</td>
          <td style="width:20%;">编号</td>
          <td style="width:20%;">中文名称</td>
          <td style="width:20%;">图片Url</td>
  </tr>
  </table>
 </td>
</tr>
</table>

<table style="border: SOLID 1px blue; border-top: 0px; width: 100%" cellpadding="0" cellspacing="0"
    OnMouseOver="this.style.border='SOLID 1px BLACK'; this.style.marginTop=-1"
    OnMouseOut ="this.style.border='SOLID 1px blue'; this.style.marginTop=0; this.style.borderTop='0px'">
<tr>
 <td>
  <table width=100% heigh=100% cellpadding="4" cellspacing="1" style="font-size:9pt;">
  <tr align="center" bgcolor="#EEEEFA" onMouseOut="this.style.backgroundColor='#EEEEFA';this.style.cursor='hand';" onmouseOver="this.style.backgroundColor='#C0C0FF'">
       <td style="width:20%;color:red;">添加</td>
          <td style="width:20%;color:red;">删除</td>
          <td style="width:20%;">00001</td>
          <td style="width:20%;">Nick</td>
          <td style="width:20%;">图片1</td>
  </tr>
  </table>
 </td>
</tr>
</table>

<table style="border: SOLID 1px blue; border-top: 0px; width: 100%" cellpadding="0" cellspacing="0"
    OnMouseOver="this.style.border='SOLID 1px BLACK'; this.style.marginTop=-1"
    OnMouseOut ="this.style.border='SOLID 1px blue'; this.style.marginTop=0; this.style.borderTop='0px'">
<tr>
 <td>
  <table width=100% heigh=100% cellpadding="4" cellspacing="1" style="font-size:9pt;">
  <tr align="center" bgcolor="#EEEEFA" onMouseOut="this.style.backgroundColor='#EEEEFA';this.style.cursor='hand';" onmouseOver="this.style.backgroundColor='#C0C0FF'">
       <td style="width:20%;color:red;">添加</td>
          <td style="width:20%;color:red;">删除</td>
          <td style="width:20%;">00002</td>
          <td style="width:20%;">Rick</td>
          <td style="width:20%;">图片2</td>
  </tr>
  </table>
 </td>
</tr>
</table>
</td></tr></table>
  
</form>
</HTML>


关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 myfaq.com.cn All rights reserved. www.myfaq.com.cn 版权所有