IE doesn't support relative paths in the base element when referencing CSS files

后端 未结 2 427
不思量自难忘°
不思量自难忘° 2021-01-03 04:03

I have a site that uses a base tag to set an absolute path for relative URLs. It works fine in all the browsers I tested it in, except IE (big surprise). Based on the reques

2条回答
  •  天命终不由人
    2021-01-03 04:32

    According to html specs: http://www.w3.org/TR/html401/struct/links.html refer: Path information: the BASE element section - This attribute specifies an absolute URI that acts as the base URI for resolving relative URIs.

    Chrome and Firefox supports relative paths in this tag but IE does not. IE is following the specs strictly.

    To manipulate and include absolute url in the base tag, just include script tag after tag as given below

    
    

提交回复
热议问题