div的contentEditable属性为true
就可以编辑

解决方案 »

  1.   

    我知道
    这是对ie来说的,而且contentEditable意味着html编辑器
    我只需要文本编辑即可
      

  2.   

    <div id="one" onclick=open()></div>
    js======================document.getElementBynames("one")[0].value="你想要改变的东西````"
      

  3.   

    <body bgcolor="#CCCCCC"><input readonly style="width:100px;overflow:visible;border:solid black px;background-color:transparent;" 
    ondblclick="this.readOnly=false;this.style.backgroundColor='';this.select();this.focus();" 
    onblur="this.readOnly=true;this.style.backgroundColor='transparent';">
    </body>
      

  4.   

    我想问你这个问题怎么解决的,我也不清楚当中,我的问题是,单击div,不支持中文输入法,所以说想改成input,怎样添加??