Google 行车路线小工具无法自动扩展
我正在尝试将 Google 行车路线小工具嵌入到 xhtml 网站中。但是,设置位置后,小工具不会自动扩展并保留原始规范中定义的大小。信息全部拉入,用箭头键向下滚动就会显示出来,但没有提供滚动条。我从 此处。如果有人知道我如何强制滚动条,或者知道为什么它不会自动展开,我真的很感激答案。 谢谢
I am trying to embed the Google Driving directions gadget into an xhtml website. However when the location is set the gadget does not auto expand and holds the size defined in the original specification. The information is all pulled in, scrolling down with the arrow keys will reveal it, but no scroll bar is provided. I got the js code from Here. If anyone knows how I could force a scroll bar, or knows why it wouldn't auto expand, I would really appreciate an answer.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
昨晚我一直在努力解决这个问题,终于明白了这个问题。您可能已经弄清楚并继续前进,但万一其他人也遇到同样的问题...
据我所知,Google 路线小工具不会自动展开,除非您在服务器上运行它-side. 我刚刚使用本地 XAMPP 服务器运行了它,并且它有效!
我希望这对其他人有帮助。
担
I was struggling with this last night and finally understand the problem. You've probably figured it out and moved on, but in case others are having the same issue...
As far as I can tell, the Google Directions Gadget doesn't auto-expand unless you're running it server-side. I just ran it with my local XAMPP server, and it works!
I hope this is helpful to others.
Dan