问题
When you load HTML into a UIWebView in iOS, how do you get iOS point units in the CSS? That is, point units within iOS are a relative size measurement, relative to the size of the display. How do you get those relative point units in CSS?
回答1:
Originally, I had a bug in my program, undiagnosed for quite a while where I assumed that the CSS "pt" unit was the iOS points. But, rather, it looks like the "px" units in CSS in the UIWebView actually corresponds to iOS points.
来源:https://stackoverflow.com/questions/30268857/points-in-ios-versus-size-units-in-css-in-a-uiwebview