有没有办法强制 IE 或 FF 进入手持模式以测试“@media手持” 样式表?

发布于 2024-07-10 01:12:19 字数 149 浏览 8 评论 0原文

有没有办法强制 IE 或 FF 进入手持模式来测试“@media手持”样式表?

或者,我是否必须发布页面并使用我的黑莓进行测试?

我更愿意测试这个而不将应用程序推送到实时服务器,因为应用程序已经在使用中。

有什么想法给我吗?

Is there a way to force IE or FF into a handheld mode for testing "@media handheld" stylesheets?

Or, do I have to publish the pages and test with my Blackberry?

I'd prefer to test this without pushing the application to the live server as the application is already in use.

Any ideas for me?

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

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

发布评论

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

评论(4

眼藏柔 2024-07-17 01:12:19

FF 的 Web 开发人员工具栏可让您测试网页 media=handheld

Web Developer Toolbar for FF lets you to test webpages media=handheld

凶凌 2024-07-17 01:12:19

媒体查询有一个简单的方法:

@media handheld, screen and (max-width: 500px) { /* your css */ }

这将使实现媒体查询的浏览器使用当您将窗口大小调整到小于 500 像素时,您的手持设备 css 会发生变化。

There's a simple way with media queries:

@media handheld, screen and (max-width: 500px) { /* your css */ }

This will make browsers that implement media queries use your handheld css when you resize the window to less than 500px.

南巷近海 2024-07-17 01:12:19

我发现 Blackberry 浏览器完全崩溃了,在 Firefox 甚至 IE 中进行测试都没有意义。 Netscape 4 看起来是最接近的。

如果你想在BB上获得不错的体验,那么你必须拥有一个BB模拟器。 它可以从 RIM 网站免费获得(您需要点击几个表格)。

如果您只想在移动浏览器下进行测试,请尝试Opera Mini 在线模拟器 或 小屏幕视图中的桌面 Opera(获取版本 7.6 或如果您想要与当今智能手机上使用的引擎完全相同的引擎,请从档案中获取 8.0)。

或者将 html {max-width:240px} 添加到您的样式中,并使用 media=screen 而不是 handheld 进行测试。

I've found Blackberry browser to be so utterly broken, that testing in Firefox or even IE doesn't make sense. Netscape 4 seems like closest approximation.

If you want achieve decent experience on BB, then you have to get a BB simulator. It's available for free from RIM website (you need to click through a few forms).

If you just want to test under a mobile browser, than try Opera Mini simlator on-line or desktop Opera in Small Screen view (get version 7.6 or 8.0 from archives if you want exactly the same engine as used today on smartphones).

Or add html {max-width:240px} to your styles and for testing serve them with media=screen rather than handheld.

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