Why do HTML elements with CSS sizes measured in pixels appear slightly larger on iOS?
问题 I am working on a website with a navigation bar using a simple unordered list. The CSS values for each of these HTML elements are measured in px. I have been using Inspect Element in Google Chrome to measure the upper padding of the ul tag that centres the list and the padding of the a tag so that the link is the same height as the navigation bar. When I view the page on a laptop/desktop with a largish screen, everything looks good. The light grey "selected link" background lines up perfectly