gpt4 book ai didi

css - 更改 fb 插件元素的 css(高度)

转载 作者:太空宇宙 更新时间:2023-11-03 18:44:24 25 4
gpt4 key购买 nike

enter image description here

大家好,我可以更改黑框的高度(给定图像中的黑色边框)。我读到它是由fb控制的。我尝试从 Firebug 改变它的高度(320px),它在浏览器中改变,但我不能改变真正的 css 代码。我什至尝试使用 dom 方法访问我的 div(class =“_4s7c”)但失败了。是真的,我们对此无能为力。请给我建议。谢谢

<style>
._4s7c{height:320px !important}
</style>

这是我在 View 页面中所做的

    <div id="fb-root" style="background: #fff;"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>`<fb:like-box href="http://www.facebook.com/EverestWomenTreksdotcom/" width="200"  show_faces="true" border_color="#FFFFFF" stream="false" header="false"></fb:like-box>
</div>

我已经更改了 iframe 的高度,但我需要更改框架内的 div 的高度。

最佳答案

试试这个,

#facebookID iframe {
height:300px !important;
}

#facebookID iframe[style] {
height:300px !important;
}

用您在 html 代码中的真实 ID 更改“#facebookID”。

关于css - 更改 fb 插件元素的 css(高度),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16734683/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com