这个问题发生的原因是根据标准,一个盒子如果没有上补白(padding-top)和上边框(border-top),那么这个盒子的上边距会跟其内部文档流中的第一个子元素的上边距重叠。
基于156个网页-相关网页
.../左边框 style.setBorderRight(HSSFCellStyle.BORDER_THIN);//右边框 style.setBorderTop(HSSFCellStyle.BORDER_THIN);//上边框 ..
基于28个网页-相关网页
... setBorder.setBorderLeft(HSSFCellStyle.BORDER_THIN);//左边框 setBorder.setBorderTop(HSSFCellStyle.BORDER_THIN);//上边框 setBorder.setBorderRight(HSSFCellStyle.BORDER_THIN);//右边框 ..
基于1个网页-相关网页
在上边框和右边框的交点成功进行了点击测试。
The hit test succeeded in the top and right border intersection.
实际上,直到现在,我也设置窗口的标题并为屏幕四周加上边框。
Actually, while I was in there, I also set a title for the window and added a border around the screen.
请注意第二个段落的上边框是如何垂直扩展以便与前一段落的底边框相接的。
Notice how the top margin of the second paragraph is extended vertically to meet the bottom margin of the previous paragraph.
应用推荐