2017-04-16 22 views
-2

我簡單套用以下的CSS:CSS支持的變化僅表示當我登錄到WordPress的

.StandardTable table th { 
 
background: #0098B4 !important; 
 
color: #ffffff !important; 
 
text-align: center !important; 
 
} 
 

 
.StandardTable table tr { 
 
background: #ffffff !important; 
 
color: #000000 !important; 
 
} 
 

 

 
.StandardTable table tr:hover{ 
 
    background-color:#1f2326 !important; 
 
    color: #ffffff !important; 
 
} 
 

 
.StandardTable table, th, td { 
 
    border: 1px solid #dcdcdc; 
 
}
<div class="StandardTable"> 
 
<table width="100%"> 
 
<thead> 
 
<tr> 
 
<th>Country of Residency</th> 
 
<th>UK</th> 
 
<th>Malta</th> 
 
<th>New Zealand</th> 
 
<th>Australia</th> 
 
<th>Gibraltar</th> 
 
</tr> 
 
</thead> 
 
<tbody> 
 
<tr> 
 
<td>Albania</td> 
 
<td>UK</td> 
 
<td>Local</td> 
 
<td>text</td> 
 
<td>text</td> 
 
<td>text</td> 
 
</tr> 
 
</tbody> 
 
</table> 
 
</div>

我只能看到的變化,如果我登錄到WordPress的,如果我只是作爲嘉賓訪問網站,樣式不顯示。

有什麼想法嗎?

+0

如果你在現場演示中有一張桌子,這將有所幫助。 – Quentin

+0

對不起,我完全忘了。 http://f9d.577.myftpupload.com/dta_analysis/ – Robinlolo

+0

請閱讀[我的網站上的某些內容不起作用。我可以只粘貼一個鏈接嗎?](http://meta.stackoverflow.com/questions/125997/something-on-my-web-site-doesnt-work-can-i-just-paste-a-link -to-IT)。當外部資源消失或者固定時,依賴於外部資源被理解的問題變得毫無用處。創建一個[MCVE]並將其置於**問題本身**中。 – Quentin

回答

0

您的網站上是否啓用了緩存插件?像W3 Total Cache或Comet Cache這樣的插件?

如果是這樣,我會使用他們的工具清除緩存或在不需要時禁用它們。

您可能會在登錄時看到更改,因爲如果您登錄WP管理員,大多數這些插件會爲您禁用緩存。

+0

謝謝您的回答。 我沒有安裝任何緩存插件。 – Robinlolo

+0

您是否也對我的問題進行了評分,我不知道爲什麼它被評爲低:( – Robinlolo

+0

您認爲安裝此插件並嘗試清除緩存是個好主意嗎? – Robinlolo

0

所以我很喜歡Avada主題。

我不得不去主題選項>高級>動態CSS和JS>禁用CSS編譯方法。

感謝邁克爾的想法。

相關問題