我现在是这样设置的:document.getElementById(b).style.border='1px solid #FF0000';可以让4边都有 红色的边框
我现在想要设置左和下有 红色边框  
右和下 不需要边框 如何写了???

解决方案 »

  1.   


    document.getElementById("div").style.border='1px solid #FF0000';
    document.getElementById("div").style.borderRightWidth='0px';
    document.getElementById("div").style.borderBottomWidth='0px';这样 ?
      

  2.   

    左和下有红色边框   
    右和下不需要边框 如何写了???到底哪里有, 哪里没有呢?一楼哥们说清楚了, 呵呵,document.getElementById("div").style.borderRight="none";也对
      

  3.   

    //设置左、下边框样式
    document.getElementById(b).style.borderLeft='1px solid #FF0000';
    document.getElementById(b).style.borderBottom='1px solid #FF0000';
      

  4.   

    好像
    document.getElementById("div").style.bordertopWidth='0px';这样写上面 不会清除。奇怪!
      

  5.   

    style.borderTopWidth = '0px';
    大小写敏感
      

  6.   

    document.getElementById(b).style.borderBottomWidth='0px';