-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro3, html解析图片mode默认使用scaleToFill,应该为widthFix #7374
Comments
taro-bot2
bot
added
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Aug 19, 2020
hulin32
changed the title
html解析图片mode默认使用scaleToFill,应该为widthFix
Taro3, html解析图片mode默认使用scaleToFill,应该为widthFix
Aug 19, 2020
我觉得你的问题可以通过Taro提供的这个方法进行解决。 |
@iamxiyang 确实,厉害! 看看官方怎么说,感觉默认的widthFix会好些 |
默认为 scaleToFill 是为了和小程序保持一致,可以参考 小程序文档 |
你好,请问这个方法要写在哪里?我用transformElement,报错找不到 |
这是啥写法?有文档说明吗? |
这是Taro3针对HTML渲染提供的,具体用法可以看一下教程,教程地址 https://taro-docs.jd.com/taro/docs/html#%E9%AB%98%E7%BA%A7%E9%80%89%E9%A1%B9 欢迎添加我创建的Taro QQ交流群:587912117 一起交流 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/flyingalex/taro-v3-bug-demo/blob/master/src/pages/index/index.jsx
小程序基础库: 2.11.3
使用框架: React
复现步骤
https://github.com/flyingalex/taro-v3-bug-demo/blob/master/src/pages/index/index.jsx
期望结果
图片不被压缩
实际结果
图片被压缩
环境信息
The text was updated successfully, but these errors were encountered: