Excel 如何计算从“正常”切换到“正常”时要添加/减去多少像素?查看模式为“页面布局”查看模式?
如果您在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信答案就在这里。
根据您使用的字体,在打印预览中查看电子表格时,列宽和行高的显示可能会有所不同。当您使用按比例间隔的字体(例如按比例的 TrueType 字体)时,会出现此行为。当您使用均匀间距的字体(具有固定宽度的字体)(例如 Courier New)时,不会出现此问题。字体规格的差异是 Microsoft Windows 如何向 Microsoft Excel 报告字体信息的函数。
I believe the answer lies here.
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.