一个元素在html / css中有一个十进制高度吗? [英] can an element have a a decimal height in html/css?

查看:139
本文介绍了一个元素在html / css中有一个十进制高度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站上工作,当我看着它用firebug在firefox各种元素似乎有高度像133.8像素,而firebug lite在chrome报告的高度为133px为同一种方法。
这是浏览器渲染的一个区别,还是只是firebug带来的好奇心?
我认为像素必须以整数测量...

I am working on a site, when I look at it with firebug in firefox various elements seem to have heights like 133.8 pixels, whereas firebug lite in chrome reports the height as 133px for the same method. Is this a difference in the browser rendering, or is it just a curiousity brought on by firebug? I thought pixels had to be measured in integers...

推荐答案

px 。像 em,in,等。

这篇关于一个元素在html / css中有一个十进制高度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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