弹出窗口大小
I want to create a popup that will have a defined size like the BBC did. As you can see, when you click "Listen Live", they open a popup player, but I didn't understand how they did that.
Any chance for explanation?
Sorry, newbie in JavaScript
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用这个函数:
由于 IE9 中的错误,我添加了调整窗口大小的逻辑。根据您使用的浏览器,您可能不需要这一点。
Try using this function:
I added the logic to resize the window because of a bug in IE9. Depending on what browser you're using, you may not need that bit.