收藏979
分享
阅读14027
更新时间2022-04-11
起始标签使用 <!doctype html>
html标签必须加上mip标记,即: <html mip>
必须包含 <head>和 <body>标签
必须在head标签中包含字符集声明: <meta charset="utf-8">,字符集统一为utf-8
必须在head标签中包含viewport设置标签: <meta name="viewport" content="width=device-width,initial-scale=1">,推荐包含minimum-scale=1
必须在head标签中包含 < link rel="stylesheet" type="text/css" href="
必须在body标签中包含 <script src="
必须在head标签中包含 <link rel="canonical" href="http(s)://xxx" >
MIP HTML 禁止使用对页面性能以及安全有较大影响的标签,请将其替换为MIP的特有标签(例如:将img标签替换为mip-img):

MIP HTML 中所有 on 开头的属性都不允许使用,如:onclick,onmouseover。
MIP HTML 中允许使用 on 属性。
style 属性。出于性能考虑,html 中不允许使用内联style,所有样式只能放到head 的 style 标签里。
<head>
<style mip-custom>
p { color: #00f;}
</style>
</head>
<body>
<p>Hello World!</p>
</body>
<p style="color:#00f;">Hello World!</p>
MIP校验工具地址:
相关
视频
RELATED VIDEOS
科技资讯
1
2
3
4
5
6
7
8
9
精选课程
共5课时
17.3万人学习
共49课时
77.4万人学习
共29课时
62万人学习
共25课时
39.5万人学习
共43课时
71.3万人学习
共25课时
61.9万人学习
共22课时
23.1万人学习
共28课时
34.1万人学习
共89课时
125.8万人学习