【发布时间】:2015-09-13 11:11:00
【问题描述】:
我的页面上有一个 Twitter 分享按钮。我使用此代码是因为我想要一个自定义图标。我的问题是我似乎无法在自定义文本中添加主题标签。上面写着“自定义文本”的地方是我输入推文的地方。
<a class="icon-twitter" rel="nofollow"
href="http://twitter.com/"
onclick="popUp=window.open(
'http://twitter.com/intent/tweet?text= custom text',
'popupwindow',
'scrollbars=yes,width=800,height=400');
popUp.focus();
return false">
<i class="visuallyhidden"><img class="social-media" src="images/twitter.png"/></i>
</a>
【问题讨论】:
标签: html button twitter share hashtag