默认情况下,按钮显示在我网站的左上方,它们与我的菜单栏重合,所以我想知道是否可以让分享按钮出现在中心(左侧)。这是它的代码。
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
<script type="text/javascript" src="https://ss.sharethis.com/loader.js"></script>
<script type="text/javascript">stLight.options({publisher: "8f4de18f-bcc0-41c5-89ab-5c8cfd8d0ac9", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<script>
var options={ "publisher": "8f4de18f-bcc0-41c5-89ab-5c8cfd8d0ac9", "position": "left", "ad": { "visible": false, "openDelay": 5, "closeDelay": 0}, "chicklets": { "items": ["facebook", "twitter", "googleplus", "linkedin", "stumbleupon", "pinterest", "email"]}};
var st_hover_widget = new sharethis.widgets.hoverbuttons(options);
</script>
&#13;
答案 0 :(得分:0)
将import com.example.users.User
model {
User user
}
json g.render(user, [excludes:['password', 'deleted', 'enabled', 'accountExpired', 'accountLocked', 'passwordExpired', 'authorities']]) {
//"carnets" g.render(template:"/carnet/index", collection: user.carnets, var:'carnets')
"carnets" tmpl.'/carnet/index'(user.carnets)
}
中的position
更改为options
。它没有经过测试。
right