Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/410.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 更改Twitter的大小';下面的按钮是什么?_Javascript_Twitter - Fatal编程技术网

Javascript 更改Twitter的大小';下面的按钮是什么?

Javascript 更改Twitter的大小';下面的按钮是什么?,javascript,twitter,Javascript,Twitter,我正在查看新的Twitter Follow按钮(),但不幸的是,我的侧边栏小于默认大小,从而使我的整个网站失去了正常 有没有一种简单的方法可以破解脚本来调整按钮的大小,或者至少在实际的follow按钮和帐户名之间设置一个换行符 我会将按钮包装在一个具有良好类名的容器中,并使用CSS调整样式 .twitter-button-container{ width: 100px; height:100px; } 差不多吧 更新 再想一想,该图像似乎是锚定标记的背景图像。我认为不可能使用CSS等调

我正在查看新的Twitter Follow按钮(),但不幸的是,我的侧边栏小于默认大小,从而使我的整个网站失去了正常


有没有一种简单的方法可以破解脚本来调整按钮的大小,或者至少在实际的follow按钮和帐户名之间设置一个换行符

我会将按钮包装在一个具有良好类名的容器中,并使用CSS调整样式

.twitter-button-container{
  width: 100px;
  height:100px;
}
差不多吧

更新


再想一想,该图像似乎是锚定标记的背景图像。我认为不可能使用CSS等调整背景图像的大小。你需要将图像放在
img
标签中。

如果你查看页面源代码,那么你的twitter代码将从

<div class="twitter">
  <!-- twitter code here -->
</div>
<div class="twitter">
  <iframe ...>...</iframe>
</div>
.twitter iframe {
  width: 80px !important;
}