Can @import be used in Adobe AIR CSS?

Trying to use @import url ('myfile.css'); in my css file in Adobe AIR but it doesn't work.

I've tried options like url ('file: ///myfile.css') and url ('file: ///abs/path/myfile.css') and none of them seem to work ...

+1


a source to share


1 answer


This works for me simply:

@import 'myfile.css';

      



If that doesn't work (remember that the path refers to the CSS file or the HTML document if it is in a tag style

), try using the prefix app://

because that is the correct path to the projects document root.

+1


a source







All Articles