在GridView中交替行样式 [英] Alternating Row Style in a GridView
问题描述
我在将CSS的替代行样式应用于gridview时遇到麻烦. GV似乎只采用了"RowStyle"属性.我什至尝试通过GridView属性窗口强制使用替代行样式",AlternateRow Style. 我将其颜色更改为亮绿色,该颜色显示在CSS示例"窗口中.窗口,但不在实际的GridView中. 这是CSS代码段:
I am having trouble applying the alternate row style from my CSS to my gridview. The GV seems to take on only the "RowStyle" attributes. I have even attempted to force the Alternate Row Style via the GridView Property window, AlternateRow Style. I changed its color to a bright green which shows up in the CSS "example" window but not in the actual GridView. Here is the CSS snippet:
.GridView
{
background-color: #EAEFF3;
color: #000080;
font-size: .8em;
vertical-align: middle;
text-align: center;
}
推荐答案
Hi,
T 与该问题有关的问题 CSS超出了本论坛的范围,建议您发布到 : .
The question relating to CSS is beyond the scope of this forum, I suggest you post to: http://forums.asp.net/.
您将获得那里专家的更好支持.
最好的问候,
哈里·朱-MSFT
Harry Zhu- MSFT
论坛中的MSDN订阅者支持
如果您对我们的支持有任何反馈,请联系msdnmg@microsoft.com
这篇关于在GridView中交替行样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!