How to reference embedded images from CSS?

后端 未结 4 1661
天涯浪人
天涯浪人 2020-12-08 02:37

I have a CSS file that is embedded in my assembly. I need to set a background image for certain elements using this CSS file, and the image needs to be an embedded resource

4条回答
  •  感情败类
    2020-12-08 02:56

    What about exposing the resources through a Web service? Such as in the CSS file, set background: url( getImage.aspx?image=newyork.jpg )?

提交回复
热议问题