Points in iOS versus size units in CSS in a UIWebView?

帅比萌擦擦* 提交于 2019-12-11 03:07:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!