-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
小程序跟H5环境下,怎么让canvas根据不同机型宽高尺寸自适应? #179
Labels
Comments
我用的是uniapp,hb插件市场直接引入的,目前项目是uniapp编译成小程序开发及兼容H5端 |
那你直接在插件里使用px单位的地方, 改成rpx试试, 我内部进行处理了 |
我看看你代码怎么用的 |
????? 不要改我源码, 你在外面直接用就行了 我再重复一遍, 我不是反感别人改我代码, 你要是有能力hold得住, 你就改, 你别改完了, 还问我为啥你改的不对 |
我真是服了, 这个包你不要动, 我里面的单位都是计算好的, 你在外面直接看文档使用就行 |
padding属性我好像忘记做适配了, 你先用px吧, 我下个版本增加一下padding响应式 |
好的,感谢大佬耐心解答!谢谢! |
没事, 用着顺手可以点个star支持一下 |
已经点了哦~非常好用! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为单位都是px的,怎么修改成rpx呢?求大佬解答下
The text was updated successfully, but these errors were encountered: