html - 调整窗口大小时 100% 宽度无响应的 HTML 布局崩溃

标签 html css layout fixed-width

如何在调整窗口大小时避免 100% 宽度非响应式 HTML 布局崩溃?我尝试通过删除视口(viewport)元标记但不起作用..

最佳答案

只需给您的主体或容器 div 设定宽度或最小宽度

<body>
<div style="min-width:1024px;" >
//put the rest of your html in here
</div>
</body>

关于html - 调整窗口大小时 100% 宽度无响应的 HTML 布局崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24074235/

相关文章:

javascript - 如何制作具有不同内容的模态

javascript - 在 html5 中文本以视频为中心

javascript 代码不工作。可能将它错误地附加到 html 页面

css - 如何隐藏每张图像底部打印的操作链接

c++ - Qt布局增加了不必要的空间

android - 方向改变 : reloading layouts from resources

algorithm - 如何优化矩形布局

html - iOS 11,Cordova 应用侧边栏在滚动时消失

html - 编码一个灵活的 HTML 运动支架

html - Bootstrap : Justified shrink the button