Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够更改我设置为在单击给定标记时出现的智能窗口的尺寸。默认的大小调整机制不会产生足够宽的窗口。检查了Yahoo Maps API,但找不到将尺寸传递给智能窗口的任何方法。甚至可能吗?
找不到任何将参数传递给 smartwindow 函数的解决方案,但无论如何我通过为我在智能窗口中呈现的 html 元素设置 CSS 样式来管理解决方法。我仍然不清楚如何在不指定窗口内元素尺寸的情况下计算智能窗口的尺寸(因为它没有反映标准样式),所以无论如何,如果有人有更优雅的解决方案,仍然欢迎添加。