元是否覆盖视口的固定元素的宽度 [英] Does meta viewport override fixed element width

查看:123
本文介绍了元是否覆盖视口的固定元素的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要视口..相关的一个简单的问题。

I have a simple question related to viewport..

我有有固定宽度的DIV说1200px..Now我设置荟萃视口设备的宽度页

I have a page which has a div with a fixed width of say 1200px..Now i set meta viewport to device-width

所以我的问题是如何将页面呈现,现在?
请问1200像素的固定宽度的尊重和视口会被忽略或
将设备宽度覆盖任何固定宽度的页面上?

So my question is how will the page be rendered now? Will the fixed width of 1200px be respected and viewport will be ignored OR will the device width override any fixed width on the page?

也将于呈现行为在所有移动浏览器一样的吗?

Also will this rendering behavior be same across all mobile browsers?

我想补充,我已经通过好的文章了在 HTTP://www.quirksmode .ORG /移动/ viewports2.html

Just to add, i have already gone through the nice article on http://www.quirksmode.org/mobile/viewports2.html

推荐答案

视窗将不会覆盖固定宽度时,有超过设备的宽度更宽的东西。

viewport will NOT override fixed width when there is something wider than device's width.

例子。
CSS固定宽度为900px;
有在该网页的图像宽度900px。
视口将只包住话设备宽度而不是调整布局宽度。
如果删除图像,视口可能会覆盖固定宽度。

这篇关于元是否覆盖视口的固定元素的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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