Skip to content

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.

1 participant