使用以下代码,我在Internet Explorer 11中收到“ IndexSizeError”错误:
var style = document.createElement('style');
document.head.appendChild(style);
style.sheet.insertRule('td {overflow: visible}');
根据https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule,index参数是可选的。