【www.bbyears.com--淘宝运营】
头部使用规范
起始标签使用
html标签必须加上mip标记,即:
必须包含
和 标签必须在head标签中包含字符集声明: ,字符集统一为utf-8
必须在head标签中包含viewport设置标签: ,推荐包含minimum-scale=1
必须在head标签中包含 < link rel="stylesheet" type="text/css" href="https://mipcache.bdstatic.com/static/v1/mip.css" >
必须在body标签中包含 <script src="https://mipcache.bdstatic.com/static/v1/mip.js" ></script >
必须在head标签中包含
页面元素使用规范
MIP HTML 禁止使用对页面性能以及安全有较大影响的标签,请将其替换为MIP的特有标签(例如:将img标签替换为mip-img):
标签 使用范围 备注 img 替换为mip-img video 替换为mip-video audio 替换为mip-audio iframe 替换为mip-iframe style 替换为
Hello World!
错误:
验证规范
MIP校验工具地址:https://www.mipengine.org/validator/validate