When defining something like a background image URL in a CSS file, when using a relative URL, where is it relative to? For example:
Suppose the file /stylesheets/base-styles.css
contains:
div#header {
background-image: url('images/header-background.jpg');
}
If I include this style-sheet into different documents via <link ... />
will the relative URL in the CSS file be relative to the stylesheet document in /stylesheets/
or relative to the current document it's included to? Possible paths like:
/item/details.html
/about/index.html
/about/extra/other.html
/index.html
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…