Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

大神,H5中为啥px能实现等高(容器高度写死px,px无任何后处理) #41

Open
qianduanwuzi opened this issue May 30, 2018 · 0 comments

Comments

@qianduanwuzi
Copy link

everybody,想问个问题。H5中px等高问题:比如iphone6和iphone6plus,dpr分别为2和3,ppi分别为326和401 .假设我html直接写死style='height:100px',px无任何后处理,看效果2手机上高度为等高。但实际计算尺寸过程不是100乘以2/326(英寸)、100乘以3/401(英寸),明显不等,为何视图出来的是等高?研究发现似乎与设置ideal viewport有关,如果去掉ideal viewport,则不等高了。有没有大神能打通我的任督2脉

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant