我试图在我的网站上嵌入一条twitter推文,但我无法更改高度和宽度。我如何才能做到这一点。。。
下面是twitter为这条推文生成的代码
<blockquote class="twitter-tweet">
<p lang="en" dir="ltr">Iustitia aims at getting justice for the sexually harrassed by using technology. Our mission is to help sexually assaulted girls back on their feet and be inculcated back into the community. The goal is to save at least 359 girls every year. <a href="https://twitter.com/savethegirl_ng/status/1281556230897569792?s=20">pic.twitter.com/tAfPl7My2A</a></p>—
iustitia (@savethegirl_ng) <a href="https://twitter.com/savethegirl_ng/status/1281556230897569792?ref_src=twsrc%5Etfw">July 10, 2020</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
发布于 2020-10-12 20:51:44
您可以像这样更改twitter-tweet的高度和宽度:
CSS
.twitter-tweet {
width: 10px;
height: 10px;
}或者如果你想要一个更内联的解决方案:
<blockquote style="width:10px; height:10px" class="twitter-tweet">
<p lang="en" dir="ltr">Iustitia aims at getting justice for the sexually harrassed by using technology. Our mission is to help sexually assaulted girls back on their feet and be inculcated back into the community. The goal is to save at least 359 girls every year. <a href="https://twitter.com/savethegirl_ng/status/1281556230897569792?s=20">pic.twitter.com/tAfPl7My2A</a></p>—
iustitia (@savethegirl_ng) <a href="https://twitter.com/savethegirl_ng/status/1281556230897569792?ref_src=twsrc%5Etfw">July 10, 2020</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
https://stackoverflow.com/questions/64318227
复制相似问题