我在网站上添加了一个类似 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/