Single/sub pixel misalignment of divs on ipad and iphone safari

后端 未结 8 739
粉色の甜心
粉色の甜心 2020-12-23 12:20

I\'ve got the following situation, and I need some help...

  1. Two divs, same size, same location, one on top of the other
  2. Everything works as expected on
8条回答
  •  不知归路
    2020-12-23 12:27

    It totally depends on one's situation, but in our case we use negative margins as proposed by this thread or a box shadow since outline only applies to all borders and ie. outline-bottom does not exist.

    /*
     * Prevent faint lines between elements.
     * @link http://stackoverflow.com/questions/5832869
     */
    box-shadow: 0 1px 0 red;
    

提交回复
热议问题