Tweet按钮在Firefox,Chrome和Safari中呈现,但不在IE9中呈现。
代码:
<!DOCTYPE html>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="url" data-text="text">Tweet</a>
<script>!function(d,s,id) {
var js,fjs=d.getElementsByTagName(s)[0];
if (!d.getElementById(id)) {
js=d.createElement(s);
js.id=id;
js.src="https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);
}
}
(document,"script","twitter-wjs");
</script>