首页 > 解决方案 > 有没有办法在 React/Nextjs 上将 nuka-carousel 点的大小更改为稍大一些?

问题描述

我有一个需要自定义点大小的核子旋转木马。但我不知道如何改变它的大小和边距。

标签: javascriptreactjsnext.js

解决方案


此 CSS 将帮助您实现目标。但是请尝试在控制台中更改 CSS 并在将来自行解决。

.slider-control-bottomcenter button{
  background: black !important;
  border-radius: 50%; 
  width: 26px !important;  // change this according to your requirement 
  height: 26px !important; // change this according to your requirement 
}

.slider-control-bottomcenter svg{
  display: none !important; // as in this situation these is no use of the svg
 }
.slider-control-bottomcenter li{
  margin-right: 5px;
 }

堆栈闪电战


推荐阅读