如何在SharePoint 2010 Web部件中显示图像

Bri*_*tul 6 web-parts sharepoint-2010

我想知道如何在SharePoint 2010 Web部件中显示本地图像.我真的不知道在CSS中写哪个url.

Mar*_*icz 17

  1. 将SharePoint"Images"映射文件夹添加到Visual Studio中的项目. 在此输入图像描述

  2. WEB-PART-NAME在里面创建一个文件夹(将相关图像保持在一起,而不是意外覆盖其他图像).

  3. 将图像放在此文件夹中.

  4. 使用以下URL: /_layouts/images/WEB-PART-NAME/IMAGE-FILENAME.png