我創建了一個id爲「descriptions」的div,它無法識別位置聲明。這是Firefox中的錯誤,還是我在這裏錯過了一些東西。我正在使用最新版本的Ubuntu。在Firefox中爲css保留的id名稱限制
CSS
#descriptions
{
position: absolute:
top: 20px;
left: 190px;
height: 500px;
width: 100px;
background-color: blue;
}
HTML
<div id="descriptions"></div>
這是一個積極的副本:http://jason-rubenstein.com/testCss/test.html
我知道它會在某些瀏覽器工作,但請覈實,這是不是一個編碼問題,而是一個錯誤。
當我更改名稱但保持代碼相同時,它可以工作。
樣式表中有一個錯字:'位置:絕對:'(冒號代替分號)[驗證碼是你的朋友](http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fjason-rubenstein.com%2FtestCss% 2Ftest.css&profile = css21&usermedium = all&warning = 1&vextwarning =&lang = en) – steveax 2012-04-23 08:28:32