|
百度移动适配meta元标签适配声明
①首页---------------------------------------------------------------
百度开放适配(仅pc添加):<meta name="mobile-agent" content="format=html5;url=完整移动端链接">
pc端须放置代码:
搜索引擎适配(对应wap):<link rel="alternate" media="only screen and (max-width: 640px)" href="完整移动端链接" />
本页面适配声明:<meta name="applicable-device"content="pc">
wap端须放置代码:
搜索引擎适配(对应pc):<link rel="canonical" href="完整PC端链接">
本页面适配声明:<meta name="applicable-device"content="mobile">
自适应
本页面适配声明:<meta name="applicable-device"content="pc,mobile">
②栏目页---------------------------------------------------------------
pc端
百度开放适配(仅pc添加):<meta name="mobile-agent" content="format=html5;url=完整移动端栏目链接">
搜索引擎适配(对应wap):<link rel="alternate" media="only screen and (max-width: 640px)" href="完整移动端栏目链接" />
本页面适配声明:<meta name="applicable-device"content="pc">
wap端
搜索引擎适配(对应pc):<link rel="canonical" href="完整PC端栏目链接">
本页面适配声明:<meta name="applicable-device"content="mobile">
自适应
本页面适配声明:<meta name="applicable-device"content="pc,mobile">
③文章页---------------------------------------------------------------
pc端
百度开放适配(仅pc添加):<meta name="mobile-agent" content="format=html5;url=完整移动端文章链接">
搜索引擎适配(对应wap):<link rel="alternate" media="only screen and (max-width: 640px)" href="完整移动端文章链接" />
本页面适配声明:<meta name="applicable-device"content="pc">
wap端
搜索引擎适配(对应pc):<link rel="canonical" href="完整PC端文章链接">
本页面适配声明:<meta name="applicable-device"content="mobile">
自适应
本页面适配声明:<meta name="applicable-device"content="pc,mobile">
|
|