How to go up one sub-domain in a relative URL?

前端 未结 1 859
温柔的废话
温柔的废话 2021-01-23 10:15

From a page at cupcakes.dessert.mysite.com/, how can I use a relative URL to access images or a style-sheet from dessert.mysite.com/? Is there a way t

相关标签:
1条回答
  • 2021-01-23 10:44

    That is not possible.

    To address your second concern, use a protocol-relative URL:

    src="//dessert.mysite.com/images/bg.gif"
    
    0 讨论(0)
提交回复
热议问题