如何在代码后面设置html表边框 [英] how to set html table border at code behind
本文介绍了如何在代码后面设置html表边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望在代码隐藏的gridview行数据绑定上有一个html表格边框属性
推荐答案
你可以使用属性添加任何控件...后面的代码
You can add by using Attributes any control..in code behind
HtmlTable tbl = new HtmlTable();
tbl.Attributes.Add("Style", "border:1px solid #ccc");
这篇关于如何在代码后面设置html表边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文