简体   繁体   English

删除 Carousal 中的空格 - SharePoint Online Modern Webpart

[英]Remove whitespaces in Carousal - SharePoint Online Modern Webpart

I want to make a carousal or image slider in sharepoint modern webpart.我想在 sharepoint 现代 webpart 中制作一个旋转或图像 slider。 I tried with "Image gallery" webpart.我尝试使用“图片库”webpart。 But for horizontal images (example: height: 50px and width: 400px), there are a lot of whitespaces above and below the image.但是对于水平图像(例如:高度:50 像素和宽度:400 像素),图像上方和下方有很多空白。 I am not able to decrease the webpart height also.我也无法降低 webpart 的高度。

So how to remove the whitespaces in this particular scenario?那么如何在这种特殊情况下删除空格呢?

Is it possible via Spfx?可以通过 Spfx 实现吗?

You need customize the CSS based on your desired design.您需要根据您想要的设计定制 CSS。

For example:例如:

在此处输入图像描述 Reduce the blank space between the panels.减少面板之间的空白空间。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM