Get script path

前端 未结 13 1247
青春惊慌失措
青春惊慌失措 2020-11-30 01:21

In CSS, any image path is relative to the CSS file location.

f.ex if I put the CSS file in /media/css/mystyles.css and use something like



        
相关标签:
13条回答
  • 2020-11-30 02:02

    You can flip through <head>'s childNodes, find your <script> tag, get the url of said script, and compute the url of your image.

    0 讨论(0)
提交回复
热议问题