Borders disappear in Chrome when I zoom in

后端 未结 7 1837
孤街浪徒
孤街浪徒 2020-11-28 12:36

I have this really simple form: http://jsfiddle.net/TKb6M/91/. Sometimes, when I zoom in or out using Chrome, the input borders disappear. For example, when I zoom to 90% I

7条回答
  •  天命终不由人
    2020-11-28 13:05

    In case overflow: hidden is neccessary , mention overflow: hidden only for the browser you are facing the width issue . In other browser, metion display: flex so that the width is automatically taken correct and also, so that on zooming in/out the borders do not disappear.

    For example : Width was not correct in my case only for IE, so I mentioned :

    @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .spanStyles {
    display: block;
    overflow: hidden;
    }
    }
    

    And the zooming in/out issue was occuring in firefox and chrome, so I mentioned

    .spanStyles {
     display : flex;
    }
    

    this resolved my issue in all browsers.

提交回复
热议问题