Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 gwt 中有一个选项卡面板。我希望允许用户仅通过鼠标选择选项卡。对于这个我已经禁用了 tabpanle 中所有选项卡的 tabindex。我试过这段代码:
DOM.setElementAttribute(cdrMeseTabPanel.getElement(), "tabIndex", "-1" );
但它不工作。
请问有什么想法吗?
尝试将 tabIndex 设置为空属性:
DOM.setElementAttribute(cdrMeseTabPanel.getElement(), "tabIndex", "" );
只需完全删除标签索引,它对我有用。