简体   繁体   English

1px边框直到放大后才显示

[英]1px border not showing until zoomed in on mobile chrome

在此处输入图片说明

Above image indicates the problem - the three boxes have a 1px border around them which doesn't entirely show when on 100% zoom on mobile chrome. 上图显示了问题所在-三个框周围有一个1px的边框,当在移动chrome上进行100%缩放时,这不能完全显示。 The version of Chrome being used is 34.0.1847.114. 使用的Chrome版本是34.0.1847.114。

There's nothing special about the Css being used: 使用的Cs没有什么特别的:

background: #FBFEFF;
border: 1px solid #3BA8E7;
padding: 5px 6px;
font-size: 14px;
outline: none;

I suppose you already solved it by now, but the lack of answers bothers me. 我想您现在已经解决了,但是缺少答案困扰着我。 It seems that 1 pixel border is lost in scaling because of fallback width ( google developer ). 似乎由于后退宽度,缩放比例丢失了1个像素边框( google developer )。

Add viewport information on pages so that devices have correct scaling information: 在页面上添加视口信息,以便设备具有正确的缩放信息:

<meta name=viewport content="width=device-width, initial-scale=1">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM