Facebook喜欢twitter bootstrap的盒子插件

时间:2014-11-08 17:01:38

标签: facebook twitter-bootstrap

Facebook就像盒子iframe不适合我。有人能指出原因吗?这是我的代码BTW它适用于不同的bootstrap主题

<div class ="section" id= "lastsectionmainpage">
    <div class ="row">
      <div class ="col-lg-12">
          <div class ="col-md-4">
      <img src= "img/sg.jpg">
      <h4 style ="color:white"> More Testimonials</h4>
    </div> <!-- end of 4 -->


            <div class ="col-md-4">
             <h4 style= "color:white"> SEE OUR IMAGE GALLERY </h4>
              <!-- button here -->
             </div> <!-- end of 4 -->


            <div class ="col-md-4">
        <iframe src="http//www.facebook.com/plugins/likebox.php?href=https%3A%2F   
       2Fwww.facebook.com%2FFacebookDevelopers&amp;width&amp;height=590& 
       &amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=true&
       amp;show_border=false" scrolling="no" frameborder="0" style="border:none;
        overflow:hidden; height:590px;" allowTransparency="true"></iframe>    
       </div>

          </div>
      </div>
    </div>

1 个答案:

答案 0 :(得分:2)

在&#34; http&#34;之后,你忘了&#34;:&#34;:

<iframe src="http://www.fa...

更好:删除&#34; http&#34;所以将使用网站上的协议:

<iframe src="//www.fa...

始终使用代码生成器来获取社交插件的正确代码:https://developers.facebook.com/docs/plugins/like-button