在渐进式 Web 应用程序的 Web 应用程序清单中,是否可以根据用户正在查看的页面设置不同的方向?
这是我的manifest.json
样子:
{
"dir": "ltr",
"lang": "en-US",
"name": "My Application",
"scope": "/",
"display": "standalone",
"start_url": "start_page.aspx",
"short_name": "My App",
"theme_color": "transparent",
"description": "My App Description",
"orientation": "portrait",
"background_color": "#00A3CC",
"related_applications": [],
"prefer_related_applications": false,
"icons": [
{
"src": "Images/Icon.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "Images/Icon.png",
"type": "image/png",
"sizes": "512x512"
}
]
}
安装应用程序时,上述清单会导致https://example.com/start_page.aspx
所有其他页面都以纵向显示。是否可以强制https://example.com/other_page.aspx
以横向显示,同时将我的网站的其余部分保持纵向?