简体   繁体   English

如何使用在桌面浏览器上运行的移动应用程序渲染移动屏幕?

[英]How to render a mobile screen with mobile app running on desktop browser?

I want to create a web app such as this?我想创建一个像这样的 web 应用程序? 在此处输入图像描述

I already have a mobile app how do I display my mobile app like this on the large screens?我已经有一个移动应用程序如何在大屏幕上显示这样的移动应用程序?

On large screens, I want a mobile and then mobile app running within it.在大屏幕上,我想要一个移动应用程序,然后在其中运行移动应用程序。

This is the link for the website shown in image这是图片中显示的网站的链接

I want my Website to work like this, how can I achieve it?我希望我的网站可以这样工作,我该如何实现?

I already have an mobile app made using ionic, what i want is to use that app for large screens like this website has used.我已经有一个使用 ionic 制作的移动应用程序,我想要将该应用程序用于本网站使用的大屏幕。

I'm not sure if I understand what you're asking.我不确定我是否明白你在问什么。

To make responsive websites, you should use this:要制作响应式网站,您应该使用以下命令:

@media (min-width: Xpx) {

} }

You can define your minimum width here, that indicates the size of browser at which these settings should be applied.您可以在此处定义最小宽度,这表示应应用这些设置的浏览器大小。 If you're using sass, nest this and apply your browser-sized settings there.如果您使用的是 sass,请将其嵌套并在此处应用您的浏览器大小的设置。

I hope that was helpful, but maybe I misunderstood the question and it's more complicated我希望这有帮助,但也许我误解了这个问题,而且它更复杂

I don't have any experience of this problem but there is a dedicated article here: https://ionicframework.com/blog/tips-tricks-for-ionic-on-desktop/我对这个问题没有任何经验,但这里有一篇专门的文章: https://ionicframework.com/blog/tips-tricks-for-ionic-on-desktop/

This can be created by using an Iframe on the Desktop.这可以通过在桌面上使用 Iframe 来创建。

So I created an SVG for the borders of the mobile and rendered my app inside the SVG using the Iframe.因此,我为移动设备的边界创建了一个 SVG,并使用 Iframe 在 SVG 内渲染了我的应用程序。

Since I am using Iframe so my app takes mobile width as viewport width and is rendered as it should on mobile.由于我使用的是 Iframe,所以我的应用程序将移动宽度作为视口宽度,并在移动设备上按应有的方式呈现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM