4
我需要在H3標籤後面顯示一個圖標,下面是我正在使用的代碼。但它不工作;使用背景圖像後:僞類
h3:after{
content: "";
background: url(down-arrow.png) no-repeat 0 0;
width:24px;
height:24px;
color:#666666;}.
我需要在H3標籤後面顯示一個圖標,下面是我正在使用的代碼。但它不工作;使用背景圖像後:僞類
h3:after{
content: "";
background: url(down-arrow.png) no-repeat 0 0;
width:24px;
height:24px;
color:#666666;}.
您還需要display: block
或display: inline-block
。
什麼是「不工作」? – BoltClock