CSS border-width:1px doesn't give me equally thin borders

前端 未结 3 1944
难免孤独
难免孤独 2021-01-21 10:21

I am trying add thin borders to a div. My CSS is like this:

border: solid;
border-width: 1px;

Yet the result borders don\'t look e

3条回答
  •  悲&欢浪女
    2021-01-21 10:41

    I have same problem. After some research I found out it's caused by 1.5 device pixel ratio (Windows 8.1 set scale everything to 150%).

    Solution is to set sale to 100% but it makes texts supertiny so I can't use this solution.

    Both IE(11) and Chrome are affected. Firefox is OK.

    Same issue is goes for mobile phones and tablets:

    mobile safari rendering buttons with border

    Uneven border in mobile browsers

提交回复
热议问题