JS文件如下
var obj = document.createElement("img");
obj.src = "images/services.jpg";
var obj1 = document.createElement("div")
obj1.style.position="absolute";
obj1.style.top="470px";
obj1.style.right="0px";
obj1.style.border-top-width="1px";
obj1.style.border-top-color="#000000";
obj1.style.border-top-style="solid";
obj1.appendChild(obj);
var obj2 = document.body
obj2.appendChild(obj1);其中的obj1.style.border-top-width="1px";
obj1.style.border-top-color="#000000";
obj1.style.border-top-style="solid";
设置后完全没效果,该怎么设置才能实现,刚接触JS,帮帮忙了