如何知道 CSS 元素之间的确切像素大小/关系?

发布于 2024-10-10 01:29:05 字数 153 浏览 0 评论 0原文

我正在深入研究 CSS,以求更加全面。我目前正在阅读“使用 Web 标准进行设计”,到目前为止这本书很棒。

我的问题是,当您获得 PSD 模型时,您如何知道背景、图像、各种块/div、字体大小等的确切像素尺寸?

我很可能会使用 Photoshop 来处理文件。

I'm diving into CSS in an effort to be more well-rounded. I'm currently reading "Designing with Web Standards" which is great so far.

My question is, when you get a mockup in PSDs, how do you know the exact pixel dimensions of backgrounds, images, various blocks/divs, font-sizes, etc?

I'll most likely be using Photoshop to work with files.

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

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

发布评论

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

评论(1

撕心裂肺的伤痛 2024-10-17 01:29:05

Photoshop 有网格工具和标尺。你可以在那里测量。这是相当准确的。
看看这个img。

顺便说一句,这些是英寸,您可以将其更改为像素。

alt text

Photoshop has a grid tool and rulers. You can measure it there. It's pretty accurate.
take a look at this img.

these are inches by the way, you can change it to pixels.

alt text

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