English 中文(简体)
GridLines Color in IE and FF
原标题:GridLines Color in IE and FF
  • 时间:2009-09-01 00:56:35
  •  标签:

I have gridlines set to true on a gridview, i want the lines to be grey. By default, the lines in IE appear grey, due to my stylesheets; but in Firefox, there is a dark line separating the header columns.

我试图增加

this.GridView1.Attributes.Add("bordercolor", "#ddd"); 

这解决了PeFox问题,但在IE,它显示了黑暗线。

问题回答

我知道这是一个老话题,但也需要解决这一问题,而“善待”的解决办法并不适用,因此,我们最简单。

c)

td
{
 border:1px solid #ddd; 
}

为什么你在计划上这样做?

如果你打开了html的档案(ascx, .aspx),那么你就应当能够在电网上树立一条直线风格,其风格是:“px固体#dd;”或最好使用电网的CssClassssssssssssssssClass=“myGridStyle”

.myGridStyle {
   border:1px solid #ddd;
}




相关问题
热门标签