【问题标题】:How to increase the width of a SharePoint Online List column within a List WebPart如何增加列表 WebPart 中 SharePoint Online 列表列的宽度
【发布时间】:2021-01-11 00:27:50
【问题描述】:

我正在尝试增加列表 Web 部件中 SharePoint Online 列表列的宽度。当我只是增加列表中一列的宽度时,其他用户看不到变化。因此,我尝试使用 JSON 格式化列(单行,另一行)(见下文),但这并没有像我们想要的那样扩展(目前似乎只扩展了大约 350 像素)。有谁知道我们可以做些什么来增加 List 列的宽度,以便所有用户在 List Part 加载到页面上时都能看到它?

{ "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "elmType": "div", "txtContent": "@currentField", “风格”: { "宽度": "750px", “字体大小”:“14px” } }

我们什么都做不了,看看下面推荐什么来增加“名称”列的宽度?

【问题讨论】:

    标签: sharepoint-online


    【解决方案1】:

    JSON 格式无法做到这一点,只能改变内部 div 的样式。

    您可以使用 spfx 扩展来注入 css 文件更改外部 div 样式。 示例:https://github.com/hugoabernier/react-application-injectcss

    【讨论】:

    • 请查看添加的附加信息,以了解有关我们可以采取哪些措施来增加宽度的建议。
    猜你喜欢
    • 2021-01-16
    • 2011-01-17
    • 1970-01-01
    • 2019-10-28
    • 1970-01-01
    • 2022-11-23
    • 2020-12-27
    • 2011-02-20
    • 1970-01-01
    相关资源
    最近更新 更多