【发布时间】:2021-04-26 22:49:57
【问题描述】:
如果分辨率超过轮播大小,如何在 Bootstrap 轮播中裁剪图像?
我尝试使用这个 CSS,但它不会裁剪比 image2 和 image2 大一点的 image1。
.carousel{width:640px; height:360px;}
我希望像这样裁剪 image1:
【问题讨论】:
标签: css twitter-bootstrap twitter-bootstrap-3 carousel
如果分辨率超过轮播大小,如何在 Bootstrap 轮播中裁剪图像?
我尝试使用这个 CSS,但它不会裁剪比 image2 和 image2 大一点的 image1。
.carousel{width:640px; height:360px;}
我希望像这样裁剪 image1:
【问题讨论】:
标签: css twitter-bootstrap twitter-bootstrap-3 carousel
在轮播类中添加溢出:隐藏
.carousel {overflow:hidden}
【讨论】: