I am working on a project where the name of our assets folder is .assets, and must remain that way. We need it to be as such so that it's hidden on UNIX and Linux systems. The only problem with this is that:
background-image: url(.assets/images/startup_arabic.jpg);
background-image: url(/.assets/images/startup_arabic.jpg);
background-image: url(../.assets/images/startup_arabic.jpg);
do not work. It's an html file, executed locally.
This really isn't my area of expertise...can anyone show me how this can be done?
Edit: The biggest reason that the folder needs to start w开发者_如何转开发ith a ".", is so that it is hidden on devices like mp3 and ebook readers, etc.
Edit: Solved: One of our brilliant coders replaced the Arabic splash with the Farsi one.
background-image: url(.assets/images/startup_arabic.jpg);
is correct. Thanks for all the replies.
well I don't know your directory structure but use ./.assets
if your file you are using to access the .assets
folder is in the same dir as the .assets
folder
Also put your url in quotes
You can use quoted or unquoted URI's, however special caracters ( including possibly the period) need to be escaped.
Taken from W3:
Some characters appearing in an unquoted URI, such as parentheses, commas, white space characters, single quotes (') and double quotes ("), must be escaped with a backslash so that the resulting URI value is a URI token: '(', ')', '\,'.
You cannot do that.
Folder/Files starting with a dot should be considered "protected"
精彩评论