CSS宽度和高度属性的最大像素值是多少? [英] What's the maximum pixel value of CSS width and height properties?
本文介绍了CSS宽度和高度属性的最大像素值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
CSS width
和 height $的最大有效
px
c $ c>属性接受?
What are the largest valid px
values that CSS width
and height
properties accept?
(我目前正在建立一个webapp,创建一个非常大的可缩放容器元素,我想知道实际的限制。)
(I'm currently building a webapp that creates a very large zoomable container element and I want to know what are the actual limits.)
推荐答案
使用某些浏览器随附的CSS检查器在 10000000000px width and height :
Using the CSS inspector that comes with certain browsers on an element with 10000000000px width and height:
Firefox: 33554400px
Chrome: 33554428px
Opera: 33554428px
IE 9: 21474836.47px
这篇关于CSS宽度和高度属性的最大像素值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文