Uneven border in mobile browsers

隐身守侯 提交于 2019-12-24 04:05:09

问题


I'm developing a responsive website and has many elements with 1px border. In mobile devices (with high dpi) borders seems uneven and blurry. I know this is because of the high DPI of the screens. Any solutions?

Edit:

CSS
.search_bar{
    width:40%;
    height:28px;
    font-size:13px;
    outline:none;
    border:0px;
    padding:0px;
    float:left;
    background:#fff;
    line-height:12px;
    font-size:14px;
    text-indent:9px;
    letter-spacing: normal;
    text-align: start;
    text-rendering: optimizelegibility;
    text-shadow: none;
    text-transform: none;
    word-spacing: normal;
}

HTML
<input name="" class="search_bar" type="text" placeholder="Search">

来源:https://stackoverflow.com/questions/29297434/uneven-border-in-mobile-browsers

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