Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚用 wordpress 开始了我的第一个博客。我正在自定义它的一些功能,但我找不到默认画廊块类型的 css 文件。
这里可以看出图片块和图库块的区别。
非常感谢您的回答。
左边有填充而不是边距。所以你可以使用 padding-left: 0
.entry-content ul:not(.entry-unordered-list){ padding-left:0px; }
@Kjubu欢迎栈溢出!
在您的style.css文件中搜索第一次出现的.wp-block-galleryin 它的属性,您会发现padding: 0;已经提到只需将其更改为padding: 0 !important;.
style.css
.wp-block-gallery
padding: 0;
padding: 0 !important;
您将获得所需的输出: