如何编辑或禁用owl-item中的宽度?

问题描述 投票:0回答:1

如何在owl carousel中编辑或禁用宽度“owl-item”?

我在照片中的意思:enter image description here

我采取了行动

(style.css> .owl-item {width:80px;}),但没有用

javascript html css owl-carousel
1个回答
1
投票

如果你想在style.css中覆盖div的宽度 - >改变它如下所示,

.owl-item { width : 80px !important; }

!important - >指定的样式将应用于css元素,而不考虑元素中提到的样式。

如果你想知道如何应用它只是看看link

希望能帮助到你。

© www.soinside.com 2019 - 2024. All rights reserved.