在OOTB任务列表中,是否有一种简单的方法为行实现交替的颜色? [英] In the OOTB Task List is there an easy way to implement alternating colors for the rows?

查看:71
本文介绍了在OOTB任务列表中,是否有一种简单的方法为行实现交替的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OOTB任务列表中,有没有一种简单的方法可以为行实现交替的颜色?

In the OOTB Task List is there an easy way to implement alternating colors for the rows?

它还应该说明是否添加或删除了任务/子任务.行的颜色不应背对背相同,而应始终交替显示颜色.

It should also account for if a task/subtask was added or removed.  The row colors should never be the same back to back, they should always alternate in color.

推荐答案

一种方法是将以下内容添加到CEWP(内容编辑器Web部件)中.

One way is to add the following into a CEWP (Content Editor Web Part).

  • 访问列表
  • 在设置下,编辑页面
  • 添加CEWP
  • 使CEWP出现在列表Web部件"下方
  • 在CEWP中单击以使编辑源代码"出现在功能区中
  • 单击编辑源代码"并将以下代码粘贴到此处(根据需要更改颜色代码):

    < style type ="text/css">
    .ms-alternating {
     背景颜色:#DDDDDD;
    }
    </style>
  • Access the List
  • Under Settings, Edit Page
  • Add CEWP
  • Make CEWP appear beneath the List Web Part
  • Click in CEWP to make 'Edit Source' appear in ribbon
  • Click Edit Source and paste the following code there (change the color code as you wish):

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

注意:

如果列表中包含子任务,则当您折叠父任务时,子任务行将消失,并且下一个可用的父任务将显示在下方.该行的颜色可能与您当前所在的父任务的颜色相同.

If your list includes sub tasks, when you collapse the parent task the sub task row will go away and the next available parent task will appear underneath.  That row may be the same color as the parent task your currently on.


这篇关于在OOTB任务列表中,是否有一种简单的方法为行实现交替的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆