HTML <base> TAG and local folder path with Internet Explorer

前端 未结 9 1668
天命终不由人
天命终不由人 2020-11-28 10:55

I am trying to use < base> TAG to indicate the source folder containing the media files for my html pages located in separate folder.

I have the

9条回答
  •  悲哀的现实
    2020-11-28 11:35

    This is a known issue and it's that IE requires closing the tag but not Firefox, the other browsers simply don't care. Here is what works for me:

    
    

    Feel free to tweak at your will, and of course replace {BASE_PATH} with your actual path, i normally use an absolute path, but i've seen this work for relative too

    EDIT: And please note that your path should end with a trailing slash

提交回复
热议问题