删除菜单栏和图片之间的间距

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

您好,我对网站编码完全陌生,如何从我的网站中删除此间距(红色圆圈)?我使用的是免费版,所以无法添加自定义 css。

enter image description here

我的代码如下:

<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained","contentSize":"100%!important"}}
--> <div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px"><!-- wp:navigation {"ref":56,"textColor":"background","customBackgroundColor":"#946F50","layout":{"type":"default","contentSize":"100%","justifyContent":"center","flexWrap":"nowrap"}} /-->

<!-- wp:columns --> <div class="wp-block-columns alignfull"><!-- wp:column {"width":"66.5%","style":{"spacing":{"padding":{"right":"0px","left":"0px"}}},"layout":{"type":"default"}}
--> <div class="wp-block-column" style="padding-right:0px;padding-left:0px;flex-basis:66.5%"><!-- wp:image {"id":69,"sizeSlug":"full","linkDestination":"none"} --> <figure class="wp-block-image size-full"><img src="https://zhiiweii.files.wordpress.com/2024/03/pexels-pixabay-257894.jpg" alt="" class="wp-image-69" /></figure> <!-- /wp:image --></div> <!-- /wp:column -->

我找不到解决办法

css wordpress web
1个回答
0
投票

如何在 WordPress 编辑器中删除空格

  1. 打开 WordPress 编辑器:登录您的 WordPress 网站并导航到要删除间距的页面。

  2. 选择块:单击包含要删除的间距的块。在你的情况下,它似乎是一个“组”块。

  3. 编辑块设置:查找在块设置中调整边距或填充的选项。有时,可能有一些选项可以调整这些设置,而无需自定义 CSS。

  4. 删除或调整间距:尝试不同的设置,直到达到所需的结果。您可能会找到将边距或填充设置为零或减少它们的选项。

  5. 预览并保存:进行更改后,预览页面以查看其外观。如果看起来不错,请保存更改。

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