自定义 Sharepoint 搜索框
我关注了一些 教程更改 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于第一个问题,您需要重新激活该功能才能重新加载安装,请检查 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
它非常简单。您所要做的就是创建自定义 CSS 文件并让它覆盖 corev15.css 文件中的默认样式。
搜索输入框的类是 .ms-srch-sb
您可以使用自定义样式,例如:
希望有帮助。
干杯
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:
Hope that helps.
Cheers