我有以下代碼:CSS問題公開程度
var d = document.createElement("div");
d.id = "d_1";
d.style.backgroundImage = "url(img/lr.png");
d.style.backgroundRepeat = "no-repeat";
d.style.width = "150px";
d.style.height = "25px";
d.style.position = "absolute";
d.style.left = "460px";
d.style.top = "385px";
d.style.visibility = "visible";
document.documentElement.appendChild(d);
和DIV不與Opera和Chrome的表現,但它顯示與Firefox!
怎麼了?
JavaScript有一個try catch子句,如果你想發現錯誤 – 2010-10-19 13:37:14
能見度「可見「。你不需要設置它。按F-12並打開調試器並檢查DOM中的該元素。 – 2010-10-19 13:39:16
這是張貼在我們可以看的地方嗎? – Brad 2010-10-19 13:41:10