<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
我用谷歌浏览器检查了它,发现了这个:
<div class="_2p3a" style="min-width: 180px; width: 270px;">
应该是:
<div class="_2p3a" style="min-width: 160px; width: 188px;">
但是如何改变呢?这是来自Facebook的CSS。我试图像那样覆盖它:
在我的 style.css 中添加了这一行,它不起作用:
._2p3a {
min-width: 160px !important;
width: 188px !important;
}
谢谢你的帮助
最佳答案
此小部件显示在 iframe 中。我们无法修改 iframe 内的任何样式或脚本。
尝试在 facebook 开发者帐户中获取正确大小的小部件。
关于html - 如何覆盖 CSS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37766241/