css - 自定义 facebook 粉丝框 css

标签 css facebook facebook-like facebook-likebox

HTML,CSS 设置为本地主机上的文件:

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like-box href="http://www.facebook.com/pages/abc/143772917800992?created" width="200" height="550" show_faces="true" stream="false" header="false" css="http://localhost/abc/templates/index/images/fb.css?1" >
</fb:like-box>

CSS:

@charset "utf-8";
/* CSS Document */
.fan_box a:hover{
  text-decoration: none;
}
.fan_box .full_widget{
  height: 200px;
  border: 0 !important;
  background: none !important;
  position: relative;
}
.fan_box .connect_top{
  background: none !important;
  padding: 0 !important;
}
.fan_box .profileimage, .fan_box .name_block{
  display: none;
}
.fan_box .connect_action{
  padding: 0 !important;
}
.fan_box .connections{
  padding: 0 !important;
  border: 0 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #666;
}
span.total{
  color: #FF6600;
  font-weight: bold;
}
.fan_box .connections .connections_grid {
  padding-top: 10px !important;
}
.fan_box .connections_grid .grid_item{
  padding: 0 10px 10px 0 !important;
}
.fan_box .connections_grid .grid_item .name{
  font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
  font-weight: normal;
  color: #666 !important;
  padding-top: 1px !important;
}
.fan_box .connect_widget{
  position: absolute;
  bottom: 0;
  right: 10px;
  margin: 0 !important;
}
.fan_box .connect_widget .connect_widget_interactive_area {
  margin: 0 !important;
}
.fan_box .connect_widget td.connect_widget_vertical_center {
  padding: 0 !important;
}

Facebook 似乎没有加载 CSS 文件。有什么问题?

最佳答案

CSS 无法从本地主机加载,因为 Facebook 需要从他们的服务器加载(和缓存)它。也就是说,它需要位于他们的服务器可以访问的地方。

关于css - 自定义 facebook 粉丝框 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7580113/

相关文章:

css - 大 Facebook 分享按钮

html - 打破表格单元格内没有空格的长文本

css - 如何在 HTML 中使用 float 正确定位它们?

facebook - 如何在 Android 中获取 Facebook 好友年龄

python - 网址错误 : <urlopen error [Errno 104] Connection reset by peer>

facebook - 在 Facebook 身份验证对话框中 Conceal 'X people use this app'

javascript - 使用合并单元格在表格上无限滚动(定义的 colspan/rowspan)

jquery - CSS - 将绝对 div 定位为垂直和水平 float

html - Facebook iframe 应用程序 : Send/Like button z-index issue

jquery - Facebook 喜欢按钮输出但 Conceal 喜欢计数