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

fix: 生成的骨架屏图片宽高不对的问题(#66) #72

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wookaoer
Copy link

@wookaoer wookaoer commented Jan 2, 2019

Q A
Bug fix? yes
New feature? no
BC breaks? yes/no
Deprecations? yes/no
New tests added? not needed
Fixed tickets comma-separated list of tickets fixed by the PR, if any
License MIT

Description

骨架结构中生成的图片高度使用的是img标签的width和height属性,优先级较低,会被其他更高优先级
的样式覆盖。
解决方案两个:
1、针对单个图片可以给元素设置data-pswp-fixedsize属性,这将给单个图片元素使用style属性创建宽高样式,以保证其优先级。
2、针对所有图片可以设置fixedSize属性,这将给所有图片元素使用style属性创建宽高样式

--

Please, don't submit /dist files with your PR!

@wookaoer wookaoer closed this Jan 23, 2019
@wookaoer wookaoer reopened this Feb 14, 2019
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

Successfully merging this pull request may close these issues.

None yet

1 participant