设计网站时可以使用像素尺寸吗?

发布于 2024-12-02 20:28:35 字数 208 浏览 1 评论 0原文

我最近开始学习一些网络开发,并注意到很多网站只是使用像素尺寸来指定薄片的尺寸以及主体的整体尺寸。

这对我来说似乎违反直觉(也许是因为我习惯了 Android 编程) 但这可能会使网站在较低分辨率的屏幕上浏览起来很痛苦,并且在高端屏幕上不太有用。

这真的是做事的方式吗?这不会造成很多问题吗?

谢谢。

编辑:如何实施一个不太固定大小的网站?

I have started learning some web development lately and have noticed lot's of sites just use Pixel dimension to specify sizes of thins as well as the overall size of the body.

This seems counter intuitive to me (maybe because I am used to programing for Android)
But this could make the website a pain to view on lower res screens and less useful on higher end screens.

Is this really the way things are done? Does this not cause to much problems?

Thanks.

EDIT: how would one go about implementing a less fixed size site?

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

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

发布评论

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

评论(2

习惯成性 2024-12-09 20:28:35

这样做有优点也有缺点。

优点:它允许您完全控制所有内容的放置位置,因为有时相对大小的内容会以意想不到的方式移动。

缺点:你提到过它们!不同尺寸的屏幕会给网站带来不同的外观。

但总体而言,对于某些人来说,一切都保持在正确的位置比一切在所有屏幕尺寸上看起来都很棒更重要。最终取决于设计师的喜好。另请记住,在较高分辨率的屏幕上使用可以放大,在较低分辨率的屏幕上使用可以缩小!

There are pros and cons to doing things like this.

Pros: It allows you to have full control over where everything is placed as sometimes with relative sizing things will move in unexpected ways.

Cons: Well you mentioned them! Different size screens will give the site a different look.

But overall to some people it is more important that everything remains in the right place than that everything looks great on all screen sizes. Ultimately it depends on the preference of the designer. Also remember that uses on higher resolution screens can zoom in and those on lower resolutions can zoom out!

请别遗忘我 2024-12-09 20:28:35

和平和梨子。

每个人都有自己的想法,只要他们保持一致并且知道自己在做什么,这才是最重要的。

我最近开始使用网格模板,它使用容器的像素尺寸,我真的很喜欢它。考虑到 960.gs (960px) 是网站可接受的尺寸宽度,如果您知道您不想开发流体模板,那么为什么不使用固定宽度像素。

如果我要拥有手机的移动版本,那么我会提供移动版本而不是我的 960px 网站,无论如何,大多数手机都会直观地显示网站。 (至少是最新的手机,显然不是旧的诺基亚 8210 的;)。

Peaces and pears.

Each to their own, so long as they are consistant and know what they are doing that is all that matters.

I have recently starting using grid templating which uses pixel dimensions for containers and I really enjoy it. Considering that 960.gs (960px) is an accepted size width for a website, if you know that you do not want to develop a fluid template, then why not use fixed width pixels.

If I am going to have a mobile version of my phone, then I serve the mobile version not my 960px website, and in any case, most phones intuitively display websites anyway. (At least the latest phones, obviously not the old Nokia 8210's ;).

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