What are the recommendations for html <base> tag?

前端 未结 17 2521
一向
一向 2020-11-21 10:17

I\'ve never seen HTML tag actually used anywhere before. Are there pitfalls to its use that means I should avoid it?

The fact that I have never noticed

17条回答
  •  爱一瞬间的悲伤
    2020-11-21 10:28

    One thing to keep in mind:

    If you develop a webpage to be displayed within UIWebView on iOS, then you have to use BASE tag. It simply won't work otherwise. Be that JavaScript, CSS, images - none of them will work with relative links under UIWebView, unless tag BASE is specified.

    I've been caught by this before, till I found out.

提交回复
热议问题