为什么设置不了DIV中的white-space
qingz 2006-11-10 11:55:05 theDiv = document.createElement("DIV");
document.body.appendChild(theDiv);
theDiv.innerHTML = obj.innerHTML;
theDiv.style.width='100px';
theDiv.style.height ='20px';
theDiv.style.overflow='hidden';
theDiv.style.white-space='nowrap';//这行不行***********************
但
<div id="demo" style="white-apace:nowrap;overflow:hidden;width=60px;height=60px;">
<a>中华人民共和国</a>
</div>
却可以,
这是为什么呢,是不是哪里弄错了?