为浏览器的窗口最小化设置最小尺寸限制? [英] Setting minimum size limit for a window minimization of browser?
本文介绍了为浏览器的窗口最小化设置最小尺寸限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在所有浏览器中手动设置浏览器窗口的最小尺寸?
Is there a way to manually set the minimum size of a browser window across all browsers?
推荐答案
你可以试试
body { min-width:600px; }
一旦视口小于 600 像素,您将获得一个水平滚动条.这仅适用于支持 min-width CSS 属性的现代浏览器.
You will get a horizontal scrollbar once the viewport gets less than 600px. This will work in only modern browsers supporting min-width CSS property.
我认为限制用户调整大小是不可能的,而且也不应该!
I don't think it is possible to restrict user from resizing, and it shouldn't be!
这篇关于为浏览器的窗口最小化设置最小尺寸限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文