select的innerHTML不能被修改。一般是remove所有options,然后createElement并且add所创建的options。如果一定要修改innerHTML的话就这样吧:<span>
  <select onmouseover="parentElement.innerHTML=aa.innerHTML">
    <option value=0>0</option>
  </select>
</span><span id=aa style="display:none">
  <select>
    <option value=1>1</option>
  </select>
</span>

解决方案 »

  1.   

    Re: Rimifon(流氓枫) 
    发帖子就在页面上面那个“| 提问|”链接丫!
      

  2.   

    微软文档Internet Development SDK(inet.chm):
    The innerHTML property is valid for block elements only. By definition, elements that do not have both an opening and closing tag cannot have an innerHTML property.谁能解释得更本质一些?
      

  3.   

    微软在线文档:
    The IHTMLElement::innerHTML property is valid for both block and inline elements. By definition, elements that do not have both an opening and closing tag cannot have an IHTMLElement::innerHTML property.谁能解释得更本质一些?
      

  4.   

    block element 是指向下面这样的:<h1></h2>
    <div></div>有一个起始标记和一个结束标记,即both an opening and closing tag只有这样的才可用IHTMLElement::innerHTML。inline就不懂了。