自定义 Sharepoint 搜索框

发布于 2024-08-14 03:43:34 字数 429 浏览 2 评论 0原文

我关注了一些 教程更改 Sharepoint 搜索框在屏幕上的显示方式。

我的第一个问题是,修改SearchArea.xml文件后,有没有办法强制重新加载?重新加载的频率似乎非常随机。

额外问题:这是最好的方法吗? 这是我发现的最简单的方法,但是在部署项目时必须更改客户端生产服务器上的文件似乎不是很优化。

I followed some tutorial to change the way Sharepoint Search Box is shown on screen.

My first problem is, after modifying the SearchArea.xml file, is there a way to force the reload? The frequency of reload seems very random.

Bonus question: is it the best way to do it?
It's the easiest I've found, but having to change the file on the client's production server when the project is deployed doesn't seems very optimized.

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

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

发布评论

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

评论(2

少钕鈤記 2024-08-21 03:43:34

对于第一个问题,您需要重新激活该功能才能重新加载安装,请检查 msdn中的这个链接

第二个问题,我刚刚在另一篇文章中回答了,看看

For the first question, you need to reactivate the feature to have it instally reload, check this link in msdn

The second question, I just answered in another post, check it out

小伙你站住 2024-08-21 03:43:34

它非常简单。您所要做的就是创建自定义 CSS 文件并让它覆盖 corev15.css 文件中的默认样式。

搜索输入框的类是 .ms-srch-sb

您可以使用自定义样式,例如:

.ms-srch-sb>input {
/* your custom css style*/
}

希望有帮助。

干杯

Its very straight forward. All you have to do is create your custom CSS file and have it override the default styles from the corev15.css file.

The class for the Search inpubt Box is .ms-srch-sb

And you can use your custom styles something like:

.ms-srch-sb>input {
/* your custom css style*/
}

Hope that helps.

Cheers

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