1

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

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

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

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

4

3 回答 3

1

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

于 2009-05-21T13:17:28.020 回答
0

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.

于 2009-05-21T21:17:12.323 回答
0

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

于 2009-05-21T13:48:56.537 回答