jquery随着屏幕尺寸的变化改变colorbox弹出尺寸
我有两个 html div,其中第一个是第二个 div 的包装器,我一直在使用颜色框弹出窗口显示两个 div 的内容。我想在屏幕尺寸更改时更改内容和颜色框的大小(如果需要)。请帮我 。提前致谢 !
I have two html div where the first one is the wrapper of the second one , i have been showing the content of two divs with the colorbox popup . I want to change the size of the content and colorbox(if needed) when the screen size will be changed . Please help me . Thanks in advance !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当窗口尺寸改变时,这将调整颜色框的大小(相对于屏幕):
This will resize the colorbox (relative to the screen) when the window dimensions change: