如何强制 AddThis 下拉菜单向左?
我在我的一个网站上使用 AddThis (http://www.addthis.com/),它工作得很好。但我注意到,如果浏览器窗口右侧有足够的空间,下拉框将始终向右侧打开。如果右侧没有足够的空间,下拉菜单将向左侧打开。
但我非常希望下拉框始终向左侧打开。另外,如果右侧有足够的空间。
但我根本无法让它发挥作用。
我的 AddThis 小部件的工作方式就像在此网站上一样: http://home.dk/ 您可以在右侧打印和电子邮件按钮旁边看到小按钮(“Del siden”)。
正如您所看到的,如果浏览器窗口足够宽,该框将在右侧打开。但请尝试缩小浏览器窗口,这样就没有足够的空间用于下拉菜单。然后它会向左打开。
如何强制下拉框始终向左打开?
提前非常感谢你们...
最诚挚的问候, 金
I'm using AddThis (http://www.addthis.com/) on one of my sites, and it's working just fine. But I've noticed that the dropdown box will always open to the right side, if there's room enough to the right in the browser window. If there's not enough space to the right, the dropdown will open to the left side.
But I'd very much like the dropdown box to open to the left side all the time. Also if there's enough space to the right.
But I simply can't get this to work.
My AddThis widget works just like on this site: http://home.dk/
You can see the small button ("Del siden") in the right side next to the print and e-mail buttons.
As you can see the box opens to the right if the browser windows is wide enough. But try to make the browser window smaller so there's not enough room for the drop down. Then it will open to the left.
How can I force the dropdown box to open to the left all the time?
Thanks you very much in advance folks...
Best regards,
Kim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阅读:http://www.addthis.com/help/client-api#configuration -ui
尝试使用 ui_offset_left 并向左设置负偏移量,以便定位它。您还有 ui_hover_direction ,但不确定它是否接受左值。
Read: http://www.addthis.com/help/client-api#configuration-ui
Try to use
ui_offset_left
and set a negative offset to the left so it positions it. You also haveui_hover_direction
but not sure if that will accept a left value.