2017-03-31 128 views
0

我的CSS代码一些部分写在专用的移动版网站的不工作,它不会出现在网页检查专用WordPress的CSS编辑器不工作

我想为我的表WordPress的编辑器有水平滚动通过手机使用时

@media (max-width: 768px) { 

.gem-textbox-content { 
padding-right: 30px !important; 
} 

.vc_tta.vc_general.vc_tta-accordion .vc_tta-panel-body { 
padding: 25px; 
} 

/*form here forward code doesn't word*/ 
.gem-table .gem-table-responsive .gem-table-style-1 .row-headers { 
    display: block !important; 
    overflow-x: scroll !important; 
} 

.tabletolist .rh .nrh { 
    display:none !important; 
} 

table { 
display:block !important; 
} 

} 

,当我直接写代码,开发者控制台它的工作原理,但是当我在它不WP CSS编辑器写,我把!重要覆盖内联CSS

回答

0

您应该更改版本号你的排队代码(通常在主题的functions.php中),以便重新加载样式表。

wp_enqueue_style('my_styles', plugins_url('mystyles.css' , dirname(__FILE__)), array(), 5.52); 

在上面的例子中,我将5.52更改为5.53来触发样式更改。

wp_enqueue_style('my_styles', plugins_url('mystyles.css' , dirname(__FILE__)), array(), 5.53);