0
嗨我嘗試爲訪問鏈接設置背景,但它不起作用。出了什麼問題?如何設置訪問鏈接的背景
CSS
ul a {display:inline-block; background:red url("https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSM7ZUDsq2jyP6Vz2yEmPl1HPVYQ5lUSL5MUoPvZw786K9mDfrWx9ZwYrY") center center no-repeat;
;color:#333;height:40px;line-height:40px;font-size:18px}
ul a:visited { background:blue url("https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRY3mOWqadrnwEId1cCx6fVM_ffhE1OzmnbGcRrkKPv1YGxHUZElGyGuc8") center center no-repeat;
;color:#fff}
HTML
<ul>
<li><a href="http://www.google.com">google</a></li>
<li><a href="http://www.yahoo.com">yahoo</a></li>
<li class="t2" ><a href="http://www.adsense.com">adsense</a></li>
<li><a href="http://www.budamivardi.com">budamivardi</a></li>
<li><a href="http://www.jsfiddle.com">jsfiddle</a></li>
<li><a href="http://www.jsfiddle.com.tr">jsfiddle</a></li>
<li><a href="http://www.jsfiddle.de">jsfiddle</a></li>
</ul>
請檢查:http://stackoverflow.com/questions/3788855/google-chrome-avisited-background-image-not-working – emmanuel 2014-08-30 11:21:27
是不是有沒有的JavaScript – budamivardi 2014-08-30 11:24:38
同時,任何解決方案http://stackoverflow.com/a/8331950/2274530 – mpgn 2014-08-30 11:25:54