load different html file based on browser?

后端 未结 2 393
礼貌的吻别
礼貌的吻别 2021-01-15 06:08

I am not sure if this is even possible, but googling has lead me to no clear answer. Is there a way to load a different set of html based on browser type?

This is se

2条回答
  •  不要未来只要你来
    2021-01-15 06:31

    If you only need to detect different versions of IE and not other browsers, you could go for the IE specific HTML conditionals:

    http://www.sitepoint.com/web-foundations/internet-explorer-conditional-comments/

    If you are using a framework to build your site that supports some sort of templating system, you could rely on the User-Agent in the request to render different HTML templates for different browsers.

提交回复
热议问题