如何在移动设备上测试网站设计?

发布于 2024-07-08 04:42:12 字数 137 浏览 8 评论 0原文

我用 900 x 600 的固定背景图像设计了我的网站。 在电脑上看起来不错。 它在 PDA 设备上的显示效果如何? 我需要为 PDA 单独设计吗?

如何检查我的网站是否可以通过手机有效浏览?

我应该怎么办?

I have designed my site with a 900 x 600 fixed background image. On the computer it looks fine. How will it look on a PDA device? Will I have to design it separately for PDA?

How should check whether my site can be browsed effectively from mobile phone?

What should I do?

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

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

发布评论

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

评论(4

别再吹冷风 2024-07-15 04:42:12
无言温柔 2024-07-15 04:42:12

您可以为手持设备提供替代样式表,而不是浏览器检测。 优点

<link rel="stylesheet" href="small.css" type="text/css" media="handheld">

是您只需要网站的一个版本,区别在于样式表。 您需要一个额外的 CSS,而通过浏览器检测,您将需要站点中每个页面的不同版本。 缺点是并非所有浏览器都支持样式表的 media 属性。 但大多数现代浏览器都支持这种功能,而且对它的支持也在不断增长。

如果您有兴趣,我建议您查看A List Apart 文章

顺便说一句,如果您还没有使用 css,请立即切换到它,无论您选择哪种解决方案来解决您的问题。 CSS 太棒了!

Instead of browser detection, you can supply alternative stylesheets for handheld devices. With

<link rel="stylesheet" href="small.css" type="text/css" media="handheld">

The advantage is that you only need one version of your site, the difference lies in the stylesheets. You need one additional css, while with browser detection you would need different versions of every page in your site. The downside is that not all browsers support the media attribute for stylesheets. But the most modern browsers do, and the support for it is growing.

If you are interested, I recommend having a look at an A List Apart article.

BTW, if you are not using css yet, switch to it immediately, no matter which solution for your problem you choose. CSS rocks!

放肆 2024-07-15 04:42:12

好吧,您总是可以在其中添加一些检测 JavaScript 来检查浏览器的类型,然后重定向到针对移动设备格式化的不同站点。 这似乎是大多数网站的常态。

示例:

  • Digg.com
  • Twitter.com
  • Google.com

Well, you could always throw some detection javascript in there to check the type of browser, then redirect to a different site that is formatted for mobile devices. This seems to be the norm for most sites.

Examples:

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