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

img展示是否支持自动裁剪? #37

Closed
cuixinxin4869 opened this issue Nov 20, 2019 · 5 comments
Closed

img展示是否支持自动裁剪? #37

cuixinxin4869 opened this issue Nov 20, 2019 · 5 comments

Comments

@cuixinxin4869
Copy link

当图片是一张大长图,是否会截取中间一部分? 还是根据图片宽100%,高自适应?? 感谢回答

@cuixinxin4869
Copy link
Author

image

@cuixinxin4869
Copy link
Author

像第一张这样展示就很不友好,不知道有无什么好的解决方案?

@AwesomeDevin
Copy link
Owner

现在是宽度100%,高度自适应的方案,第一张图原图是怎样的?

@cuixinxin4869
Copy link
Author

嗯,第一张是宽750*2000的,要是让前端做裁剪也不现实,除非服务端支持。咱们其实可以用background-image来实现,要比img友好些

@AwesomeDevin
Copy link
Owner

哈哈,那你可以改一下样式

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

2 participants