我看到我的社交按鈕時出現問題,它們顯示並且可點擊,但無法看到按鈕。我看不到我的社交媒體按鈕
這是我的HTML標籤:
<div class="social_buttons">
<ul>
<li><div class="fb-btn"><a href="" target="_blank">Facebook</a></div></li>
<li><div class="ln-btn"><a href="" target="_blank">LinkedIn</a></div></li>
<li><div class="tw-btn"><a href="" target="_blank">Twitter</a></div></li>
<li><div class="gp-btn"><a href="" rel="publisher" target="_blank">Google+</a></div></li>
<li><div class="yt-btn"><a href="" target="_blank">Youtube</a></div></li>
</ul>
</div>
這是CSS文件,該文件爲HTML標籤:
.social_buttons {
width: 41px;
position: fixed;
right: 0px;
top: 145px;
}
.social_buttons a {
display:block;
width: 100%;
height: 100%;
text-indent: -9999px;
}
.social_buttons ul {
margin: 0px;
padding: 0px;
}
.social_buttons li {
float: left;
}
.social_buttons .fb-btn, .social_buttons .ln-btn, .social_buttons .tw-btn, .social_buttons .gp-btn, .social_buttons .yt-btn, .social_buttons .sh-btn {
background-repeat: no-repeat;
width: 45px;
height: 45px;
margin-bottom: 10px;
}
.social_buttons .fb-btn {
background-image: url("../img/social_buttons/1463808493_facebook.png");
}
.social_buttons .ln-btn {
background-image: url("../img/social_buttons/1463808541_linkedin.png");
}
.social_buttons .tw-btn {
background-image: url("../img/social_buttons/1463808521_twitter1.png");
}
.social_buttons .gp-btn {
background-image: url("../img/social_buttons/1463808579_google.png");
}
.social_buttons .yt-btn {
background-image: url("../img/social_buttons/1463808557_youtube2.png");
}
將不勝感激,我fsomeone可以回答這個問題!
背景圖片的參考是不正確的。現在它的工作正常。謝謝。 –