如何将图片上传到插件文件夹并在 CSS 中使用此图片

建议提供代码示例?

background-image: url(/plugins/MY_PLUGIN/images/bg.png);

并从管理面板管理该图像的样式
示例:

background-position-x 等
1 个赞

我的问题已通过一个主题解决 - Include assets (e.g. images, fonts) in themes and components

谢谢

2 个赞