将 SharePoint:FormFields 自定义为特定高度

发布于 2024-07-21 09:08:03 字数 266 浏览 7 评论 0原文

我正在自定义 NewForm.aspx 页面,并以文本框的形式创建了一些新的 SharePoint:FormFields。 我希望根据具体情况自定义这些盒子的高度,但我无法弄清楚。

我研究过 DisplaySize,但它只控制特定文本框的宽度,并且我看到添加了:

但这会改变每个 SharePoint:FormField 的大小,而不仅仅是一个。

I'm customizing a NewForm.aspx page and I've created a few new SharePoint:FormFields in the form of textboxes. I'm looking to customize the height of these boxes on a case-by-case basis, but I can't figure it out.

I've looked into DisplaySize, but that only controls the width of a specific textboxe, and I've seen adding in:

<style>
.ms-long{width:100px;}
</style>

but that changes every SharePoint:FormField size, not just one.

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

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

发布评论

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

评论(3

无敌元气妹 2024-07-28 09:08:03

在完整的html输出中找到该元素,并使用id而不是class作为css选择器。 如果找不到合适的选择器或者需要使用ie中不支持的选择器,可以使用javascript/jquery来查找和修改单个控件。

Find the element in the complete html output, and use the id rather than the class as the css selector. If you can't find a suitable selector or you need to use selectors not supported in ie, you can use javascript/jquery to find and modify individual controls.

乖乖哒 2024-07-28 09:08:03

如果您正在自定义 NewForm.aspx,并且想要自定义控件的外观,则还应该使用您自己的 .css 文件自定义 CSS。 这可能包括也可能不包括定制的母版页。

If you are customizing the NewForm.aspx, and you want to customize the look of the controls, you should also customize the CSS by using your own .css file. That may or may not include a customized master page.

坏尐絯℡ 2024-07-28 09:08:03

我认为您是 SharePoint Designer 的用户,正在编辑 NewForm.aspx。 就我个人而言,我会采取的路线是设计一个自定义文本框字段并以这种方式为其指定所需的大小。 可能不是您想要的,但这是实现这一目标的一种方法。

I take it your a user of SharePoint Designer to be editing NewForm.aspx. Personally the route I would go down is to design a custom text box field and give it the desired size that way. Might not be what you want, but it's one way to do it.

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