1 在JS中用object.setAttribute('readonly','readonly')总是不行,并且它又不报错.调试了我很久,
原来可以用object.setAttribute('readOnly','readOnly');解决问题.
2 下面是一个详尽的参照表:左边为标准游览器的,右边是IE的。
var IEfix = {
acceptcharset: “acceptCharset”, accesskey: “accessKey”, allowtransparency: “allowTransparency”, bgcolor: “bgColor”, cellpadding: “cellPadding”, cellspacing: “cellSpacing”, “class”: “className”, colspan: “colSpan”, checked: “defaultChecked”, selected: “defaultSelected”, “for”: “htmlFor” , frameborder: “frameBorder”, hspace: “hSpace”, longdesc: “longDesc”, maxlength: “maxLength”, margin “marginWidth”, marginheight: “marginHeight”, noresize: “noResize”, noshade: “noShade”, readonly: “readOnly”, rowspan: “rowSpan”, tabindex: “tabIndex”, valign: “vAlign”, vspace: “vSpace”}