2011-11-21 63 views
1

我在网站上添加了一个iframe像框:www.apf.noLike box image witdh

但是,有些图像超出比例,我该如何覆盖此代码?

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

感谢Caecilia

回答

1

我终于得到了图像传回正确的宽度使用下面的代码:

<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每17你需要更新CSS以防止使用缓存版本的CSS。