如何为动态创建的td设置边框颜色? [英] How to set the border color for for Dynamically created td?

查看:429
本文介绍了如何为动态创建的td设置边框颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的表格中,我以动态方式创建了一些td,当我选择该td时,它必须更改其背景色和bordercolor,但仍显示背景色,但是当设置为border color时,在表中摇晃我的标签...为什么请帮助我.. !!

in my table there is some td''s that i created as dyanamically,when i selected that td it has to change its background color and its bordercolor,background color is showing but when border color set to it,i thas been shaking my tad''s in the table...why please help me..!!

推荐答案

TdObject.Style.Add("border", "1px");


此链接可能会对您有所帮助..
http://forums.asp.net/t/1395277.aspx /1 [ ^ ]

使用您的td代替上面链接中的表格.
This link may help you..
http://forums.asp.net/t/1395277.aspx/1[^]

Use your td instead of table in the above link.


这篇关于如何为动态创建的td设置边框颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆