[原创]table动态改变颜色包括一个边框
2005-03-09 20:06
543 查看
#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%;"> </td>
<td style="width:20%;"> </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>
//----------------------------------------------------------------------
//
// 作者: 李淼(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%;"> </td>
<td style="width:20%;"> </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>
相关文章推荐
- [原创]table动态改变颜色包括一个边框
- table动态改变颜色包括一个边框
- table鼠标移动背景,边框颜色改变
- Android自定义TextView边框颜色(动态改变边框颜色以及字体颜色)
- 借助JavaScript中的时间函数改变Html中Table边框的颜色
- 动态改变table 背景颜色
- 借助JavaScript中的Dom属性改变Html中Table边框的颜色
- (原创)代码动态改变某些textview文本颜色及其大小的方式
- Android绘制一个三角形并且可动态改变颜色
- table 鼠标移上去改变单元格边框颜色。
- 第六篇:Android 代码中动态改变Shape资源的边框颜色
- EditText三个编辑框输入,动态改变登陆按钮的颜色变化
- 动态改变tableview的cell的高度
- 动态改变TREEVIEW颜色
- 通过JS动态改变table中<td>的内容
- ios:改变tableview的titleForHeaderInSection字体颜色设置
- CSS样式设置语法全解,样式优先级、值和单位、字体、文本、块级元素,行内元素,替换元素、非替换元素、display、float、position、table、li、光标、边距边框、轮廓、颜色背景
- 使用DWR时动态生成TABLE的一个小技巧
- QTabWiget Change Color 改变颜色(每个QWidget都有一个自己的调色板palette,设置它的颜色,然后setAutoFillBackground即可)
- C#通过重写Panel改变边框颜色与宽度的方法