这个CSS值是什么意思? [英] What does this CSS value mean?
问题描述
在查看网页的来源时,我遇到了这个CSS,应用于按钮内的一个span:
While viewing the source of a web page, I came across this CSS, applied to a span within a button:
.whatever button span {
position: absolute;
left: -1e+7px;
}
/ code>是什么意思?这是我应该注意的一些技巧吗?
What does left: -1e+7px;
mean? Is this some trick I should be aware of?
推荐答案
它似乎是科学记数法(在本例中为-10,000,000像素)。据我所知,CSS不允许科学记数法(它不在标准,但Google搜索css scientific notation针对Batik - 一个SVG引擎 - 针对不支持它)提出了几个投诉。我想,一些CSS解析器确实支持这样的符号,尽管它不是标准的一部分,但如果是,我不能在找到信息解析器支持它。
It appears to be scientific notation (in this case, for -10,000,000px). To the best of my knowledge, CSS does not allow scientific notation (it is absent from the standard, but a Google search for "css scientific notation" turns up several complaints against Batik — an SVG engine — for not supporting it). I would guess that some CSS parsers do support such notation, despite it not being part of the standard, but if so, I cannot find information on which parsers support it.
为了安全起见,我会避免在你自己的样式表中使用它。
To be safe, I would avoid using it in your own stylesheets.
这篇关于这个CSS值是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!