在sharepoint页面中的静态行上添加一条水平线

Add a Horizontal line on a static Row in sharepoint Page

本文关键字:添加 一条 水平线 静态 sharepoint      更新时间:2023-09-27

我有一个包含一些字段的SharePoint列表。当我点击新项目时,它打开了一个带有一些字段的新表单来输入值。

在这里,在这个页面上,我想在一个特定的行上添加一条水平线。如何使用jquery。

代码结构如下:

<tr>
    <td valign="top" width="350px" class="ms-formbody">
        <span dir="none"><select id="Evidence_x0020_Attached_fee083f0-60e9-4d66-bb36-2196a22a7923_$DropDownChoice" title="Evidence Attached" class="ms- RadioText"></select><br></span>
        <span class="ms-metadata">Choose Yes if you have attached your evidence to this form <br> <br>Instructions to Attach - Click on Attach File at the top of the page <br></span>
    </td>
<tr>
<tr>
    <td colspan="2">
        <hr />
    </td>
</tr>

因此,我需要动态添加这一行:

<tr>
    <td colspan="2">
        <hr />
    </td>
</tr>

CSS,其中"3"表示tr:的编号

.ms-formtable tr:nth-child(3) td {
    border-bottom:2px solid red;
}