poi 合并单元格添加边框

Adding a bit of extra padding to your cell boundaries can make it easier for you to read through data in a Microsoft Excel spreadsheet. If you want to add extra white space between text and cell borders, here’s how.

在单元格边界上添加一些额外的填充可以使您更轻松地阅读Microsoft Excel电子表格中的数据。 如果要在文本和单元格边框之间添加额外的空白,请按照以下步骤操作。

在左右单元格边界之间添加额外的间距 (Adding Extra Spacing Between Left and Right Cell Borders)

To add the extra space you need between the borders of a cell and the data held within it, you’ll need to align your text or numbers using an indent. Formatting your cells to do this will give you an extra gap between your cell border and the start of your data.

要在单元格的边框和其中的数据之间添加所需的额外空间,您需要使用缩进对齐文本或数字。 格式化单元格来执行此操作将使您在单元格边界和数据开始之间留出额外的空隙。

To start, open your Excel spreadsheet and select the cells you want to format. Right-click on the cells you’ve selected and then click the “Format Cells” button.

首先,打开Excel电子表格,然后选择要设置格式的单元格。 右键单击所选的单元格,然后单击“设置单元格格式”按钮。

This opens the “Format Cells” options box. From here, you can edit everything from your cell number type to the font style. Click on the “Alignment” tab and then open the “Horizontal” drop-down menu in the “Text Alignment” section.

这将打开“格式化单元格”选项框。 在这里,您可以编辑所有内容,从单元格编号类型到字体样式。 单击“对齐方式”选项卡,然后在“文本对齐方式”部分中打开“水平”下拉菜单。

For extra space between cell text and the left or right cell border, click “Left (Indent)” or “Right (Indent).” Click “Distributed (Indent)” to have equal spacing between both the text and the cell borders on both sides.

要在单元格文本与单元格的左侧或右侧边框之间留出多余的空间,请单击“左(缩进)”或“右(缩进)”。 单击“分布式(缩进)”以使文本和两侧的单元格边框之间具有相等的间距。

In the “Indent” box, select the size of your additional spacing. Click the up and down arrows or type a number in the box.

在“缩进”框中,选择其他间距的大小。 单击上下箭头,或在框中键入数字。

Once you’re ready, click the “OK” button to save any changes.

准备就绪后,单击“确定”按钮以保存所有更改。

The additional padding between your text and cell borders will be applied to your selected cell range.

文本和单元格边框之间的其他填充将应用于您选择的单元格范围。

In the example below, we’ve applied a distributed indent to the cell borders in column B, using four spaces, to allow for equal padding between the cell text and the left and right cell borders.

在下面的示例中,我们使用四个空格对B列中的单元格边框应用了分布式缩进,以允许单元格文本与左右单元格边框之间的填充相同。

With this cell formatting applied, the cell values keep the extra padded boundaries against the cell borders, even if you change the width of the column manually.

应用此单元格格式后,即使您手动更改列的宽度,单元格值也会保留额外填充的边界和单元格边界。

在顶部和底部单元格边界之间添加额外的间距 (Adding Extra Spacing Between Top and Bottom Cell Borders)

If you want to add extra spacing between your text and the top and bottom cell borders, you can also do this from within the “Format Cells” options box. As before, select your cell range within the spreadsheet, right-click on the selection, and then click “Format Cells.” In the “Alignment” tab, click on the “Vertical” drop-down menu.

如果要在文本与顶部和底部单元格边框之间添加额外的间距,也可以在“设置单元格格式”选项框中执行此操作。 和以前一样,在电子表格中选择单元格范围,右键单击所选内容,然后单击“设置单元格格式”。 在“对齐”选项卡中,单击“垂直”下拉菜单。

Select “Top” to align your cell data to the top of your cell, “Center” to ensure an equal gap between the top and the bottom, or “Bottom” to align your text to the bottom of your cell.

选择“顶部”将单元格数据与单元格的顶部对齐,选择“居中”以确保顶部和底部之间的间距相等,或者选择“底部”以使文本与单元格的底部对齐。

Click “OK” to apply the new formatting to your cells.

单击“确定”以将新格式应用于您的单元格。

Depending on the option you’ve chosen, your cell data will now be aligned to your chosen option. If you’ve chosen to use the “Center” option, this will align your text to the middle of the cell. You can see this in action by changing the row height to allow for a “taller” row.

现在,根据您选择的选项,您的单元格数据将与您选择的选项对齐。 如果您选择使用“居中”选项,这将使文本与单元格的中间对齐。 您可以通过更改行高以允许“更详细”的行来查看实际情况。

In the example below, each of these options has been used with a string of text containing the alphabet.

在下面的示例中,这些选项中的每一个都与包含字母的文本字符串一起使用。

You can combine horizontal and vertical text alignment for your cells if you’d prefer. This allows you to apply additional spacing between your cell data and each of your cell borders.

如果愿意,可以将单元格的水平和垂直文本对齐方式组合在一起。 这使您可以在单元格数据和每个单元格边界之间应用额外的间距。

翻译自: https://www.howtogeek.com/449169/how-to-add-space-between-text-and-cell-borders-in-excel/

poi 合并单元格添加边框

poi 合并单元格添加边框_如何在Excel中的文本和单元格边框之间添加空间相关推荐

  1. latex 单元格 斜杠_如何在Excel中的单元格中启用键入斜杠

    latex 单元格 斜杠 By default, the slash (/) key displays the shortcuts to the commands on the ribbon in E ...

  2. 如何在 Excel 中对齐或旋转单元格中的文本?

    欢迎观看 Microsoft Excel 教程,小编带大家学习 Microsoft Excel的使用技巧,了解如何在 Excel 中对齐或旋转单元格中的文本. 在 Excel 中,对齐或旋转单元格的文 ...

  3. 在excel日期比对大小_如何在Excel中防止分组日期

    在excel日期比对大小 As a teenager, group dates can be fun. If you have strict parents, that might be the on ...

  4. excel公式单元格注释_如何在Excel中隐藏注释,公式,溢出文本和网格线

    excel公式单元格注释 We've shown you how to hide cells, rows, and columns and how to hide worksheets/tabs an ...

  5. 合并的表格怎么加横线_如何在excel中文字后面加横线

    如何在excel中文字后面加横线以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 如何在excel中文字后面加横线 好办啊 ...

  6. 符号在excel中的引用_如何在Excel中添加项目符号

    &符号在excel中的引用 There's no built-in feature for bullets in Excel, like there is in a Word document ...

  7. 如何在EXCEL中查找多个单元格中的多个关键字,多个单元格满足多个条件的行的绿色在线工具

    Excel查找,偶尔有情况遇到要在Excel中查找多个单元格的多个关键字(或包含或相等),或多个单元格或列满足多个的条件的行,Excel本身的支撑没有那么灵活.本身我们又对代码不熟悉,有一个方便性的工 ...

  8. webbrowser控件 有数据 但页面空白_如何在Excel中实现可以切换不同数据系列的滚珠图?...

    ▲更多精彩内容,请点击上方Excel小铲子▲ 操作系统版本 Windows 10 64位 Excel版本 Microsoft Excel 2016 64位 案例文档下载 链接:https://pan. ...

  9. excel中去重计数_如何在Excel中计数

    excel中去重计数 There are lots of different ways to count things in Excel – maybe you need to count the n ...

最新文章

  1. 设计模式笔记之十四 (命令模式)
  2. android功能导航布局,安卓9.0新功能 屏幕旋转将与导航栏同窗
  3. 对现有的所能找到的DDOS代码(攻击模块)做出一次分析----自定义攻击篇
  4. 自动驾驶汽车定位技术
  5. Lua语言中pairs和ipairs的区别
  6. 使用 TRESTClient 與 TRESTRequest 作為 HTTP Client 之二 (POST 檔案)
  7. 使用JavaScript和jQuery添加工具提示
  8. SAP License:SAP系统界面相关调整和设置
  9. 更改MyEclipse的默认编码
  10. 过去的七天我是这样过的
  11. Hadoop在业界的使用情况
  12. win7生成ssh key配置到gitlab
  13. paip.提高开发效率----自动数据库SQL备份
  14. 文通车牌识别 SDK
  15. windows10升级助手_微软官网下载与安装windows10系统的操作步骤
  16. 计算机显示不出桌面上的文件夹,为什么电脑桌面上的EXCEL文件不显示EXCEL图标...
  17. laravel 生成二维码
  18. 语言栏删除已经卸载了的输入法
  19. 2013江苏计算机二级vfp试题,2008年春季江苏省计算机等级考试二级VFP考试试题(含答案)...
  20. HTTP Live Streaming 分析

热门文章

  1. NSGA-II看这篇够了
  2. ff14转服务器系统,ff14转服时间 | 手游网游页游攻略大全
  3. 连连支付与Shopee达成战略合作,全面进军东南亚市场!
  4. c51单片机时钟c语言程序设计,基于51单片机的电子时钟设计..doc
  5. 【经典数据结构】B树与B+树(动图看转载)
  6. Window下安装SDP测试工具 sdpoker
  7. 西安达内:学Java到底好在哪里
  8. Muddy roads2
  9. 在校大学生暑假兼职接单Python月入五千
  10. php fopen 路径拼接,PHP 拼凑 URL 的问题!