We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
代码中计算是这样的 imgWidth_c() { // 对于移动端重新计算图片宽度` return this.isMobile ? window.innerWidth / 2 - this.mobileGap : this.imgWidth},
这里使用innerWidth,等于完全忽略了父容器宽度,会导致图片大小异常,溢出父容器,建议这里使用容器宽度而不是window.innerWidth
The text was updated successfully, but these errors were encountered:
No branches or pull requests
代码中计算是这样的
imgWidth_c() { // 对于移动端重新计算图片宽度`
return this.isMobile ? window.innerWidth / 2 - this.mobileGap : this.imgWidth},
这里使用innerWidth,等于完全忽略了父容器宽度,会导致图片大小异常,溢出父容器,建议这里使用容器宽度而不是window.innerWidth
The text was updated successfully, but these errors were encountered: