safari rounding down on subpixel calculations

后端 未结 6 1630
小鲜肉
小鲜肉 2020-12-31 08:47

i have a container that takes up 829px on a row, and has a background-image of the same size.

i have a div within that container that calculates its width based on t

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 09:14

    I just faced a similar issue and I wrote about how I solved it here: http://maxlapides.com/fixing-subpixel-layout-rendering-in-safari/

    Basically, I came up with some JavaScript that recalculates the widths of the items so they span the full width of the container.

提交回复
热议问题