seems too difficult to understand
which browser are you talking about?
What's your definition of "value"?

解决方案 »

  1.   

    再解释一下
    就是好几个span里面有内容
    我按住鼠标左键拖动选定了一段内容(可能是好几个span里的)
    怎么在选定以后给这几个span里的内容重新赋值???
      

  2.   

    http://msdn.microsoft.com/archive/en-us/dnarhtmau/html/leverageediting.asp
    document.body.contentEditable = 'true'; var range=document.selection.createControlRange;
      

  3.   

    createcontrolrange这个事件具体怎么写那?怎么知道我选择的span那??
      

  4.   

    http://msdn.microsoft.com/library/default.asp?url=/archive/en-us/dnarhtmau/html/leverageediting.asp
      

  5.   

    现在该怎么解决那??
    我通过
     label2.Attributes.Add("onMouseDown", "this.innerHTML=document.form1.Select1.options[document.form1.Select1.selectedIndex].value")给label里的text赋值了
    怎么样才能把这个值在服务器端取出来那???
      

  6.   

    在进行这一部的同时把这个值付给一个hidden,在服务器端取hidden的值
    <input type="hidden" name="aaa" > label2.Attributes.Add("onMouseDown", "this.innerHTML=document.form1.Select1.options[document.form1.Select1.selectedIndex].value");
    document.form1.aaa.value = document.form1.Select1.options[document.form1.Select1.selectedIndex].value;
      

  7.   

    document.form1.Select1.options[document.form1.Select1.selectedIndex].text