我正在嘗試使用Font-Awesome圖標來分享按鈕。我使用填充來創建每個圖標的寬度。但是,當它到達div的末尾時,它會像下面的圖像一樣切斷。爲什麼我不使用共享圖標圖像?我雖然圖像會減慢頁面加載。我曾嘗試保證金,不工作。白空間:nowrap將穿透div並給我一條線。請幫助。如何解決這種情況下的css填充?
.share_buttons{
\t margin-top: 9px;
\t \t line-height: 4.4;
\t }
\t
\t \t .share_buttons a{
\t \t \t color:#fefefe;
\t \t \t background:#7f98cf;
\t \t padding: 17px 15px 6px 15px;
\t \t -moz-border-radius: 50px;
\t \t -webkit-border-radius: 50px;
\t \t border-radius: 12px;
\t \t \t margin-left:4px;
\t \t \t margin-bottom:90px; \t
\t \t \t text-decoration:none; \t
\t \t \t text-align: center;
\t \t \t cursor:pointer; \t
\t \t \t
\t \t }
\t \t .share_buttons a#facebook{
\t \t \t background:#3b4ca4;
\t \t }
\t \t .share_buttons a#plus_share{
\t \t \t background:#5976B5;
\t \t \t
\t \t }
\t \t .share_buttons a#twitter{
\t \t \t background:#73c6f1;
\t \t }
\t \t .share_buttons a#google_plus{
\t \t \t background:#cb0000;
\t \t }
\t \t .share_buttons a#tumblr{
\t \t \t background:#386082;
\t \t }
\t \t .share_buttons a#reddit{
\t \t \t background:#c1c1c1;
\t \t \t color:#333;
\t \t }
\t \t .share_buttons a#linkedin{
\t \t \t background:#00649e;
\t \t }
\t \t .share_buttons a#pinterest{
\t \t \t background:#e30000;
\t \t }
\t \t .share_buttons a#stumbleupon{
\t \t \t background:#eb4924;
\t \t }
\t \t .share_buttons a#envelope{
\t \t \t background:#65c093;
\t \t }
\t \t
<div class="share_buttons" id="share_buttons_about">
\t \t
\t \t <!-- Facebook -->
\t \t <a id="facebook" href="" target="_blank"><i class="fa fa-facebook fa-2x"> Tell your friends</i></a>
\t \t <!-- Twitter -->
\t \t <a id="twitter" href="" target="_blank"><i class="fa fa-twitter fa-2x"></i></a>
\t
\t \t <!-- Google+ -->
\t \t <a id="google_plus" href="" target="_blank"><i class="fa fa-google-plus fa-2x"></i></a>
\t \t <!-- tublr -->
\t \t <a id="tumblr" href="" target="_blank"><i class="fa fa-tumblr fa-2x"></i></a> \t
\t
\t \t <!-- LinkedIn -->
\t \t <a id="" target="_blank"><i class="fa fa-linkedin fa-2x"></i></a>
\t \t <!-- Pinterest -->
\t \t <a id="pinterest" href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());"><i class="fa fa-pinterest-p fa-2x"></i></a>
\t \t <!-- StumbleUpon-->
\t \t <a id="stumbleupon" href="" target="_blank"><i class="fa fa-stumbleupon fa-2x"></i></a>
\t \t <!-- Email -->
\t \t <a id="envelope" href=""><i class="fa fa-envelope-o fa-2x"></i></a>
\t \t </div><!--share_buttons-->
犯規解決問題 - 只是試圖在一個小提琴:( –
在撥弄沒有工作,但實際上在我的情況下,它的工作原理,感謝您的兩個時間欣賞 – conan