0

我的问题是在 IE8 和 IE9 中禁用了不同的文本框,我已经尝试设置

 textbox.setEnabled(true);

但这并没有帮助,这些盒子在 safar、firefox 和 chrome 中运行良好,只有 IE 有问题有人知道为什么吗?

这是使用文本框实现的部分:

 public class Text extends Composite {
    private TextBox textBox;
    public Text() {
        ...
        textBox = new TextBox();
        textBox.setEnabled(true);
        textBox.setValue("test");
        textBox.setFocus(true);
        textBox.setReadOnly(false);
        textBox.setWidth("150px");
        textBox.addValueChangeHandler(new ValueChangeHandler<String>() {
        ...
         )};
         textBox.addKeyUpHandler(new KeyUpHandler() {
         ...
         )};

         FlexTable f = new FlexTable();
         f.setWidget(0,0,textBox);

   }

我发现了这个TEXTBOX FOCUS PROBLEM但不幸的是,这只是对问题的描述,没有解决方案,这里可能有人知道解决方法吗?

4

0 回答 0