img.style.BORDER-TOP-STYLE="none";

解决方案 »

  1.   

    img.style.borderTop = 0;
    img.style.borderLeft= 0;
    img.style.borderBottom = 0;
    img.style.borderRight = 0;
      

  2.   

    img.style.borderTopStyle="none";
    img.style.borderLeftStyle="none";
    img.style.borderRightStyle="none";
    img.style.borderBottomStyle="none";或img.style.borderStyle="none";
      

  3.   

    应该这样写
    img.style.属性="";
    属性就是你要添加的属性了.例如width  top  bottom等
      

  4.   

    直接用img.style.border = "none"就可以设置边框无了
      

  5.   

    style 是一个对象,不是一个字符串,不能直接赋给一个字符串
    document.createElement("<img src='"+imageUrl+"' width='120' height='96'   "
                   +"style='BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; "
                   +"BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none'");
      

  6.   

    img.className = "imgStyle";
    css:
    .imgStyle{
      BORDER: none;
    }
      

  7.   

    img.style.borderTopStyle="none";
    img.style.borderLeftStyle="none";
    img.style.borderRightStyle="none";
    img.style.borderBottomStyle="none";
      

  8.   


    楼主不是瞎了眼,就是犯了偏心狂,最起码完全可以告他在倒分答案早在前面就有人给出来了,却半分不给,
    虽然两颗的朋友已不在乎这丁点分,但给分不公就是不公,怎么也要说两句。////////////////////////////////////////////////////////////////////////回复人: ssm1226(雨中人@忙晕了) ( ) 信誉:314  2005-9-30 17:37:32  得分: 0  
     
     
       
    img.style.borderTopStyle="none";
    img.style.borderLeftStyle="none";
    img.style.borderRightStyle="none";
    img.style.borderBottomStyle="none";或img.style.borderStyle="none";