As Pradip has already told the reason for this behaviour I won't repeat it here again. But there are a couple of things you can try.
Have a look at this article, Inconvenient Content Query Web Part and server-relative URLs, which suggests -
Another way to get around this issue is to use a Feature Receiver.
After activating the Feature that provisions the .webpart file of the
Content Query Web Part with custom XSLT files, it would modify the
contents of the .webpart file and replace the tokens with
server-relative URL of the current Site Collection.
The aforementioned article also provides code snippet which you can give a try.
You can also look into using URL tokens by changing the code within the Elements.xml
file of Content Editor Web Part as below:
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">~site/Style Library/Page/ImageList.html</ContentLink>
Please look into the discussions over here and here for more information on using URL tokens in CEWP.