FormidableLabs/radium

A solution to reference image in CSS

Aperta

#372 aperta il 29 set 2015

 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (352 fork)batch import
docshelp wanted

Metriche repository

Star
 (7414 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

With CSS file, you could reference images using relative path, it will use the relative path to the CSS file location.

With in JS file, this is not the case. If you reference an image using relative path, the path will be relative to displayed page which won't work with image files.

Will there be a solution to resolve this?

Guida contributor