Open
Conversation
feat: 添加对storage和sessionStorage的支持 (ElemeFE#65)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
骨架结构中生成的图片高度使用的是img标签的width和height属性,优先级较低,会被其他更高优先级
的样式覆盖。
解决方案两个:
1、针对单个图片可以给元素设置
data-pswp-fixedsize属性,这将给单个图片元素使用style属性创建宽高样式,以保证其优先级。2、针对所有图片可以设置fixedSize属性,这将给所有图片元素使用style属性创建宽高样式
--
Please, don't submit
/distfiles with your PR!