我怎样才能改变Twitter的分享按钮高度? [英] How can I change Twitter's Share button height?

查看:207
本文介绍了我怎样才能改变Twitter的分享按钮高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何改变Twitter的图标高度?

我还有一个自定义图像,但高度保持不变。我该如何解决这个问题?

https://dev.twitter.com/docs/tweet-button 并我用DIV方法,而不是的iframe,因为我想添加数据的标题

我用这个code:

 <脚本的src =// platform.twitter.com/widgets.js类型=文/ JavaScript的>< / SCRIPT>
< D​​IV>
   < A HREF =htt​​ps://twitter.com/share级=Twitter的分享按钮
      数据URL =htt​​ps://dev.twitter.com/pages/tweet_button
      数据通过=your_screen_name
      数据文本=签出此页有关资料Tweet按钮
      数据相关=随处:JavaScript API的
      数据计数=垂直>资料Tweet&下; / A>
< / DIV>


解决方案

您可以通过分享链接

使用您自己的按钮

< A HREF =htt​​ps://twitter.com/share>&分享Tweet LT; / A>


  

查询字符串参数是



  • URL(网页的URL分享)

  • 通过(用户的网名属性的鸣叫)

  • 文本(默认推文文字)

  • relatet(相关账户)

  • 计数(计数框位置)

  • 郎(对于鸣叫按钮语言)

  • counturl(URL到您的共享URL解析)

  • 主题标签(以逗号分隔的附加到鸣叫文井号标签)

  • 大小(所呈现的按钮的大小)

您可以在这里找到分享Tweet按钮移到

更多详情

How can I change Twitter's icon height?

I have another custom image, but the height stays the same. How do I fix this?

https://dev.twitter.com/docs/tweet-button and I used the div method and not the iframe because I wanted to add the data-title

I used this code:

<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
<div>
   <a href="https://twitter.com/share" class="twitter-share-button"
      data-url="https://dev.twitter.com/pages/tweet_button"
      data-via="your_screen_name"
      data-text="Checking out this page about Tweet Buttons"
      data-related="anywhere:The Javascript API"
      data-count="vertical">Tweet</a>
</div>

解决方案

You can use your own button by using Share Link

<a href="https://twitter.com/share">Tweet</a>

Query String Parameters are

  • url (URL of the page to share)
  • via (Screen name of the user to attribute the Tweet to)
  • text (Default Tweet text)
  • relatet (Related accounts)
  • count (Count box position)
  • lang (The language for the Tweet Button)
  • counturl (URL to which your shared URL resolves)
  • hashtags (Comma separated hashtags appended to tweet text)
  • size (The size of the rendered button)

You can find further details at Tweet Buttton

这篇关于我怎样才能改变Twitter的分享按钮高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆