css - 像框图像宽度

标签 css facebook-social-plugins facebook-iframe

我在网站上添加了一个类似 iframe 的框:www.apf.no

但是有些图片不成比例,我该如何覆盖这段代码?

.connect_widget .page_stream img {     
   max-width: 120px; 
}

谢谢凯西莉亚

最佳答案

我终于使用以下代码将图像恢复到正确的宽度:

<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script> 
<script type="text/javascript">FB.init("");</script> 
<fb:fan profile_id="ID_OF_PAGE_HERE" stream="1" connections="20" width="600px" height="500px" header="1" logobar="0"  css="WEBSITE_URL_HERE/css/facebook.css?17"></fb:fan>

CSS 是:

a.largePhoto img.img {
    max-width: 300px !important;
    width: 300px !important;
}

每次更新 CSS 时请记得在 .css?17 中添加一个,以防止使用 CSS 的缓存版本。

关于css - 像框图像宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8210687/

相关文章:

html - 在线网站布局与本地不同

html - 显示在悬停隐藏的移动截断文本

javascript - Facebook 分享按钮

html - 社交媒体按钮未正确排列

css - iframe 高度但不是宽度

html - iFrame 链接不起作用

iphone - 可以在 UIWebView 中使用 iframe 吗?

css - `@import` 不包含样式,即使 url 是 100% 正确的

css - 更改导航栏 Logo 填充

ssl - 如何在开源社交网络中注册新组件