如何仅允许平板电脑使用横向/纵向

发布于 2025-01-06 15:42:46 字数 57 浏览 4 评论 0原文

我想仅在平板电脑中为我的应用程序启用屏幕方向更改,同时将手机中的布局限制为仅纵向。你如何做到这一点?

I would like to enable screen orientation changes for my application in tablets only, while restricting the layout in phones to portrait only. How do you do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

山田美奈子 2025-01-13 15:42:46

无论如何,请阅读此内容。它应该让您知道如何去做。 标签允许您声明您希望应用程序支持哪种类型的屏幕。但是,如果您阅读,它会给出您对屏幕方向有一个想法。

希望这有帮助。

In any case, please read this. It should give you an idea as to how to go about it. The <supports-screens> tag allows you to declare what sort of screens you want your app to support. However, if you read this, it'll give you an idea about screen orientation.

Hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文