[英]How to reduce padding in css? (section class)
如何在css中编辑此类的填充
<section class="wpb_row main_row no-seperator" style="padding-top:70px; padding-bottom:70px;">
我试过这段代码,但它不起作用:
wpb_row.main_row.no-seperator
{padding-top:0px; padding-bottom:0px;}
你错过了.
在你的CSS的开头:
.wpb_row.main_row.no-seperator
{padding-top:0px; padding-bottom:0px;}
css通过html样式标记绑定到该特定元素。 你必须编辑它或使用!important
。
.wpb_row.main_row.no-seperator
{padding-top:0px !important; padding-bottom:0px !important;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.