简体   繁体   English

如何减少css中的填充? (科类)

[英]How to reduce padding in css? (section class)

How can I edit the padding of this class in css 如何在css中编辑此类的填充

 <section class="wpb_row main_row  no-seperator" style="padding-top:70px; padding-bottom:70px;">

I tried this code but it doesn't work: 我试过这段代码,但它不起作用:

wpb_row.main_row.no-seperator
{padding-top:0px; padding-bottom:0px;}

You're missing the . 你错过了. at the start of your css: 在你的CSS的开头:

.wpb_row.main_row.no-seperator
{padding-top:0px; padding-bottom:0px;}

The css is tied to that particular element through the html style-tag. css通过html样式标记绑定到该特定元素。 You'll have to edit that or use !important . 你必须编辑它或使用!important

.wpb_row.main_row.no-seperator
{padding-top:0px !important; padding-bottom:0px !important;}

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

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