Skip to content
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

wxparse CSS样式有问题,为什么对图片的宽高都设为0? #68

Open
lazycat92 opened this issue Feb 20, 2019 · 14 comments
Open

Comments

@lazycat92
Copy link

引入css后,img标签的宽高都被设为0,导致图片无法加载出来。

原来wxparse里面是没有对图片的宽高做初始化设置的的,为什么mpvue-wxparse中要这样设置?
wx20190220-160311 2x

wx20190220-160354 2x

@lazycat92
Copy link
Author

image

wxparse里面也没有这样的样式设置啊!
https://github.com/icindy/wxParse/blob/master/wxParse/wxParse.wxss

@F-loat
Copy link
Owner

F-loat commented Feb 20, 2019

js 里设置的,图片加载完成后会去掉

@XiaoBaiRoadToGod
Copy link

mpvue1.4.0 图片加载的函数没有执行,导致图片的width和height都是0,无法显示,请问楼主解决了吗

@F-loat
Copy link
Owner

F-loat commented Mar 11, 2019

图片直接用 image 标签可以正常显示吗

@XiaoBaiRoadToGod
Copy link

图片的load函数没有执行,另一个页面的图片宽高我是写死的,可以显示

@F-loat
Copy link
Owner

F-loat commented Mar 11, 2019

error 事件会执行不

@XiaoBaiRoadToGod
Copy link

error 也没有执行

@F-loat
Copy link
Owner

F-loat commented Mar 11, 2019

那可能加了这个样式是有影响,我今天处理下

@XiaoBaiRoadToGod
Copy link

好的,谢谢

@F-loat
Copy link
Owner

F-loat commented Mar 11, 2019

@ZjVirus 看下 example 目录,mpvue 更新到 1.4.0 之后图片是正常的啊

@XiaoBaiRoadToGod
Copy link

好的,明天再看一下

@XiaoBaiRoadToGod
Copy link

不知道什么原因,还是不行。已升级mpvue2.0, 正常

@F-loat
Copy link
Owner

F-loat commented Mar 12, 2019

这个 0px 回头我加个配置,可以手动禁用吧

@XiaoBaiRoadToGod
Copy link

感谢

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

No branches or pull requests

3 participants