How to display an image in a SharePoint 2010 Web Part

流过昼夜 提交于 2019-12-06 00:52:43

问题


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.


回答1:


  1. Add SharePoint "Images" mapped folder to the project in Visual Studio.

  2. Create a WEB-PART-NAME folder inside (to keep related images together and not overwrite some other image by accident).

  3. Place the image in this folder.

  4. Use the following URL: /_layouts/images/WEB-PART-NAME/IMAGE-FILENAME.png



来源:https://stackoverflow.com/questions/5121775/how-to-display-an-image-in-a-sharepoint-2010-web-part

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!