我要在datagrid 中添加样式 如
<SelectedItemStyle Font-Bold="True" CssClass="Grid_SelectedItem"></SelectedItemStyle>
.Grid_SelectedItem
{
background-color:#CCE9F7;
color:Red;
font-weight:bolder;
}
其中,在列表中的前景色和加粗在样式中不起任何作用,可是,只要脱离彩虹框架就没有任何问题。这是为什么呢?谁有好的解决方法阿!! (加粗目前只能考Font-Bold="True"这种方法实现),不能用后台程序添加样式。谢谢了~~
<SelectedItemStyle Font-Bold="True" CssClass="Grid_SelectedItem"></SelectedItemStyle>
.Grid_SelectedItem
{
background-color:#CCE9F7;
color:Red;
font-weight:bolder;
}
其中,在列表中的前景色和加粗在样式中不起任何作用,可是,只要脱离彩虹框架就没有任何问题。这是为什么呢?谁有好的解决方法阿!! (加粗目前只能考Font-Bold="True"这种方法实现),不能用后台程序添加样式。谢谢了~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货