Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 如何更换爱奥尼亚4中子弹滑块的道具?_Css_Ionic Framework_Ionic4 - Fatal编程技术网

Css 如何更换爱奥尼亚4中子弹滑块的道具?

Css 如何更换爱奥尼亚4中子弹滑块的道具?,css,ionic-framework,ionic4,Css,Ionic Framework,Ionic4,如何更改离子滑块中子弹的道具(颜色、大小和位置) 我应用了下一个链接的片段,但不适用于ionic 4 我刚找到答案 您应该应用您的样式,如以下示例所示: .swiper-pagination-bullet { --bullet-background: #00a0be; width: 12px; height: 12px; } .swiper-pagination-bullet-active { width: 12px; height: 1

如何更改离子滑块中子弹的道具(颜色、大小和位置) 我应用了下一个链接的片段,但不适用于ionic 4
我刚找到答案

您应该应用您的样式,如以下示例所示:

.swiper-pagination-bullet {
    --bullet-background: #00a0be;
    width: 12px;
    height: 12px;
  }

  .swiper-pagination-bullet-active {
      width: 12px;
      height: 12px;
     --bullet-background: transparent;
  }

  .swiper-container-horizontal>.swiper-pagination-bullets {
    bottom: 5%!important;
  }
这些是更改圆点样式所需的类。希望对你有用