如何阻止浏览器窗口在特定大小后调整大小 [英] How to stop the browser window from resizing after a specific size

查看:423
本文介绍了如何阻止浏览器窗口在特定大小后调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为浏览器窗口提供最小宽度,以便用户在特定大小后不能缩小。但是他可以把它做得更大。比如将css的'min-width'属性应用于浏览器窗口本身。有可能吗?

How to give a minimum width to the browser window, so that the user can't make it smaller after a specific size. But he can make it larger than that. Something like applying the 'min-width' property of css to the browser window itself. Is it possible any way?

推荐答案

你可以来控制窗口的大小。您可以使用CSS设置 min-width min-height 属性,以确保页面布局保持清醒。

You can not control the size of the window. You can use CSS to set min-width and min-height properties to ensure your page layout stays sane.

这篇关于如何阻止浏览器窗口在特定大小后调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆