2017-03-31 44 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);