如何在 SharePoint 2010 Web 部件中显示图像 [英] How to display an image in a SharePoint 2010 Web Part
本文介绍了如何在 SharePoint 2010 Web 部件中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何在我的 SharePoint 2010 Web 部件中显示本地图像.我真的不知道在css中写哪个url.
I would like to know how to display a local image in my SharePoint 2010 Web Part. I don't really know which url to write in the css.
推荐答案
将 SharePoint图像"映射文件夹添加到Visual Studio 中的项目.
Add SharePoint "Images" mapped folder to the project in Visual Studio.
在其中创建一个 WEB-PART-NAME
文件夹(将相关图像放在一起,不会意外覆盖其他图像).
Create a WEB-PART-NAME
folder inside (to keep related images together and not overwrite some other image by accident).
将图像放在此文件夹中.
Place the image in this folder.
使用以下 URL:/_layouts/images/WEB-PART-NAME/IMAGE-FILENAME.png
这篇关于如何在 SharePoint 2010 Web 部件中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文