Child div left border overlaps parent div bottom border in Chrome with display scaling at 125%

一曲冷凌霜 提交于 2020-01-05 06:51:31

问题


I currently have the following markup an CSS:

.test1 {
  border: solid 2px #003C88;
  height: 100px;
}

.test2 {
  height: 100%;
  border-left: solid 8px #FBCE07;
}
<div class="test1">
  <div class="test2">
    Content
  </div>
</div>

in Chrome + Windows 10 with monitor scaling set to 125% the left border of the child div overlaps the bottom border by 1px. If I increase the scaling above 100% the issue disappears. In Firefox and Chrome + Windows Server 2008 the borders are displayed correctly regardless of scaling.

来源:https://stackoverflow.com/questions/57716142/child-div-left-border-overlaps-parent-div-bottom-border-in-chrome-with-display-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!