How do I refer to an image resource from CSS in grails?

后端 未结 5 2023
别那么骄傲
别那么骄傲 2021-02-13 20:07

I want to refer to an image in my main stylesheet for a Grails app and I can\'t get it to work. My image lives in the standard location in my Grails app...

proj         


        
5条回答
  •  醉话见心
    2021-02-13 20:55

    Be aware though. Using $resource{... does not work within a referenced .css file. You need to add a style element.

提交回复
热议问题