半点优化网 http://www.bdxc.net/
当前位置首页 > 网站技术问题> 正文

如何添加网页代码让所有网站访问时以兼容模式访问

2022-06-01 17:51:43 暂无评论 293 网站技术问题 访问   兼容   添加

添加网页代码可以事网站访问时以兼容模式访问:在head标签中添加一行代码, <html><head><meta name=renderer content=webkit|ie-comp|ie-stand></head><body></body></html>。

content的取值为webkit,ie-comp,ie-stand之一,

区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。

若页面需默认用极速核,增加标签:<meta name=renderer content=webkit>

若页面需默认用ie兼容内核,增加标签:<meta name=renderer content=ie-comp>

若页面需默认用ie标准内核,增加标签:<meta name=renderer content=ie-stand>

在head标签中添加一行代码:<html> <head> <meta name=renderer content=webkit|ie-comp|ie-stand> </head> <body> </body></html>content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。 若页面需默认用极速核,增加标签:<meta name=renderer content=webkit> 若页面需默认用ie兼容内核,增加标签:<meta name=renderer content=ie-comp> 若页面需默认用ie标准内核,增加标签:<meta name=renderer content=ie-stand>

猜你喜欢