[mips]MIP HTML规范说明 MIP HTML规范介绍

更新时间:2020-12-13    来源:淘宝运营    手机版     字体:

【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!

错误:

Hello World!

验证规范

MIP校验工具地址:https://www.mipengine.org/validator/validate

本文来源:http://www.bbyears.com/taobaodaxue/116120.html

热门标签

更多>>

本类排行