Excel 如何计算从“正常”切换到“正常”时要添加/减去多少像素?查看模式为“页面布局”查看模式?

发布于 2025-01-19 02:18:30 字数 454 浏览 1 评论 0原文

如果您在 Excel 中创建一个新表格并在“正常”视图模式下查看列宽,它将是 64px
现在,如果您切换到“页面布局”模式并查看列宽,它将是 69px
也就是说,Excel 添加了 5px(这是针对 Calibri 字体,设置为默认的“Normal”样式)

如果将“Normal”样式的字体从 Calibri 更改为 Courier New(大小和样式相同),则在“ “正常”视图模式下的列宽将为 80 像素,在“页面布局”视图模式下为 78 像素
也就是说,现在 Excel 已经去掉了 2px

如果将“Normal”样式的字体更改为 Comic Sans MS(具有相同的大小和样式),那么无论是在“Normal”视图模式还是在“Page Layout”视图模式下,列宽将为 80px
也就是说,现在Excel没有改变列宽。

当从“普通”视图模式切换到“页面布局”视图模式时,Excel如何计算要添加/减去多少像素?

If you create a new table in Excel and look at the column width in "Normal" view mode, it will be 64px
Now if you switch to "Page Layout" mode and look at the column width, it will be 69px
That is, Excel added 5px (this is for the Calibri font, set to the default "Normal" style)

If you change the font for the "Normal" style from Calibri to Courier New (with same size and style), then in "Normal" view mode the column width will be 80px, and in "Page layout" view mode 78px
That is, now Excel has taken away 2px

If you change the font for the "Normal" style to Comic Sans MS (with same size and style), then both in "Normal" view mode and in "Page Layout" view mode, the column width will be 80px
That is, now Excel has not changed the column width

How does Excel calculate how many pixels to add/subtract when switching from "Normal" view mode to "Page Layout" view mode?

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

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

发布评论

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

评论(1

断爱 2025-01-26 02:18:30

我相信答案就在这里。

Microsoft Excel 2000 中的标准列宽为 8.43 个字符;但是,您在屏幕上看到的实际宽度会有所不同,具体取决于为工作簿的普通样式定义的字体宽度。更改默认字体也会更改列宽。出现此行为的原因是 Excel 存储各个字体的列宽信息的方式。

根据您使用的字体,在打印预览中查看电子表格时,列宽和行高的显示可能会有所不同。当您使用按比例间隔的字体(例如按比例的 TrueType 字体)时,会出现此行为。当您使用均匀间距的字体(具有固定宽度的字体)(例如 Courier New)时,不会出现此问题。字体规格的差异是 Microsoft Windows 如何向 Microsoft Excel 报告字体信息的函数。

I believe the answer lies here.

The standard column width in Microsoft Excel 2000 is 8.43 characters; however, the actual width that you see on the screen varies, depending on the width of the font defined for the Normal style of your workbook. Changing the default font also changes the column width. This behavior occurs because of the way that Excel stores the column width information for individual fonts.

Depending on the fonts you use, column widths and line heights may be displayed differently when you view a spreadsheet in print preview. This behavior occurs when you use proportionally spaced fonts, such as a proportional TrueType font. This problem does not occur when you use uniformly spaced fonts (fonts with fixed widths), such as Courier New. The discrepancy in font metrics is a function of how Microsoft Windows reports font information to Microsoft Excel.

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