大家好, 我制作了一个 html 页面,我想防止页面在某些缩小后缩小。 我的html代码在下面
<style type="text/css">
.main-container {
background-image: url(images/background.jpg);
background-repeat: no-repeat;
position:relative;
margin:0 auto;
height: 1508px;
width: 1300px;
}
</style>
//main container
<div id='container'>
my contents will be here
</div>
最佳答案
访问浏览器的缩放控件状态不可编写脚本(通用)。
关于html - 如何防止html页面在特定高度后缩小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8821299/