我試圖在WordPress中使用的背景鏈接CSS屬性選擇器的圖像顯示它的頁面http://launique.co.uk/services-float/背景屬性(CSS)不工作,圖像不顯示
上首先我使用默認的圖像和鏈接進入鏈接到默認的圖像,這是我已經上傳到媒體庫:
background: url(http://launique.co.uk/wp-content/uploads/2016/07/fold.gif) no-repeat 0 0;
這沒有奏效。
然後經過一番研究,我在cPanel的子主題文件夾中創建了一個單獨的「images」文件夾。
background: url(images/fold.gif) no-repeat 0 0;
但依然無果......
這是整個就像代碼:
.page-services h1::after {
content: '';
display: block;
height: 40px;
width: 40px;
background: url(images/fold.gif) no-repeat 0 0;
}
什麼是0 0? – RamenChef
我通過檢查元素對其進行測試後編輯了我的答案。 http://stackoverflow.com/a/38668570/4298604 –