Sharepoint 2010列表视图行颜色更改

时间:2012-03-26 07:21:57

标签: visual-studio-2010 sharepoint sharepoint-2010 web-parts

从VS2010创建列表视图并将其作为Web部件添加到sharepoint 2010后,行具有交替的颜色,我不想要但似乎无法更改。我已尝试为列和行添加条件格式,但它不起作用!

我已尝试将.ascx文件中的样式更改为:

<style type="text/css">
.style1
{
    width: 159px;
    height: 53px;
    background-color: White;
    text-align:left;
}
</style>
<img alt="" class="style1" 

<SharePoint:ListViewByQuery runat="server" ID="ProjectsListView" class ="style1" />

但似乎没有任何效果!有人有解决方案吗?谢谢!

1 个答案:

答案 0 :(得分:2)

尝试:

<style type="text/css">
.ms-alternating
{
    background-color: White;
}
</style>