html - css background-image How to go up a few unkonwn levels to specific folder name in the src path of a URL? -
i have component , name of parent folder (not dircet parent) , want access file located under parent folder.
if parent folder direct parent of component following access wanted file:
background-image: url('../images/bg.png');
but how can file if dont know how many levels parent folder positioned in reference compnent.
it should following:
background-image: url('**/images/bg.png');
Comments
Post a Comment