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

问题描述 投票:0回答:1

我有一个包含一些字段的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>
javascript jquery html sharepoint-2013
1个回答
0
投票

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

.ms-formtable tr:nth-child(3) td {
    border-bottom:2px solid red;
}
© www.soinside.com 2019 - 2024. All rights reserved.