我在网站上添加了一个iframe像框:www.apf.noLike box image witdh
但是,有些图像超出比例,我该如何覆盖此代码?
.connect_widget .page_stream img {
max-width: 120px;
}
感谢Caecilia
我在网站上添加了一个iframe像框:www.apf.noLike box image witdh
但是,有些图像超出比例,我该如何覆盖此代码?
.connect_widget .page_stream img {
max-width: 120px;
}
感谢Caecilia
您需要使用旧的,但仍然支持风扇框可以添加自己的自定义样式表,然后你喜欢的任何造型可能包括重写“最大宽度“
查看这些信息了解更多详情:
http://www.speckygeek.com/how-to-add-facebook-like-box-to-your-website/
http://www.daddydesign.com/wordpress/how-to-customize-your-facebook-fan-box/
我终于得到了图像传回正确的宽度使用下面的代码:
<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。