我为手机创建了manifest.json文件

问题描述

我创建了三个文件index.html,style.css,manifest.json,并将图像作为PNG格式添加到了索引文件中。如您所见,样式和清单文件都喜欢索引文件,如下所示

<!DOCTYPE html>
<html lang="en">
<head>
    <Meta charset="UTF-8">
    <Meta name="viewport" content="width=device-width,initial-scale=1.0">
    
    <title>burim</title>

    <link rel="stylesheet" href="st.css">
    <link rel="manifest" href="manifest.json">
    
</head>

<body>
    
    
    <img src="mas.png" class="one">

</body>
</html>

现在在另一面,我充实了manifest.json文件,因为它应该在我的代码显示如下

{
    "name":"websocket","short_name":"websocket","start_url":"index.html","display":"standalone","orientation":"portrait-primary","background_color":"yellow","icon":[
        {
            "src":"mas.png","type":"image/png","size":"140x140","purpose":"maskable any"
        }
    ]
}

现在我遇到一些有关文件自身的错误,我需要更正吗?这类错误的根源是编码n还是个人计算机本身

error examples

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)