早上好,晚上或下午,
不久前,我做了一些代码,采用传送带的第四.item
,并赋予它一个新的类。
Owl Carousel: How to change the size of the fourth item
现在,我试图让所选择的.item
比其他人更大,使用CSS,没有运气中心。这是我工作的参考:
参考设计:
I've tried using `display: flex` and `flex-grow:1`<br>
and `position:relative` `position:absolute` too.
如何解决这个任何想法?感谢:D
.your-item {
transform: scale(1.1);
transform-origin: 50% 50%;
}
应该解决您的问题。显然,你想从1.1
改变缩放因子,以任何有意义的例子。
如果你想转换原点是在底部,使用transform-origin: 50% 100%;