无法更改列表表单 Web 部件的颜色

发布于 2024-08-07 07:40:40 字数 120 浏览 4 评论 0 原文

我正在使用 SharePoint Designer 加载列表表单 Web 部件,并想要修改 newform.aspx 中的一些颜色。

我右键单击该对象,转到属性 ->格式化了但是什么也改不了。原因是什么?

I am using SharePoint Designer to load a list form web part and want to modify some colors in newform.aspx.

I right-click on this object, go to Properties -> Formatting but can't change anything. What would be the reason?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百善笑为先 2024-08-14 07:40:40

ListFormWebPart 是自动生成表单的 Web 部件,无法自定义。

您需要使用 CSS 对其进行样式设置。您可以使用 CssClass 属性(在代码中)为其指定一个类

...然后使用 CSS 规则

.form 定位表单元素-style table.ms-formtable td.ms-formbody { 背景:颜色 }

The ListFormWebPart is a web part that auto-generates the form, and can't be customized.

You'll need to style it using CSS. You can give it a class using the CssClass property (in code)

<WebPartPages:ListFormWebPart CssClass="my-style"

...then target the form elements using using CSS rules

.form-style table.ms-formtable td.ms-formbody { background: color }

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文