Tag Archives: select

用脚本修复IE6 select overlap bug(遮盖问题)

IE6有个bug,不论如何设div的z-index, IE6的select总会显示在最前,我们都无法使用DIV遮挡住select元素。 今天写了个类,解决了这个问题,先贴上代码,然后写如何使用: namespace: if (typeof(rdcjs) == "undefined") _rdc = rdcjs = {};   IE6SelectHelper class: _rdc.IE6SelectHelper = function(){ this.selectList = new Array(); } _rdc.IE6SelectHelper.prototype = { isInRange : function( elem, containerId ){ //alert(this.idAs); var containerDiv = document.getElementById( containerId ); if( !containerDiv ) return false; //as_asName_txtSuggestBoxasName var elemX1 = this.getX( elem ); var elemY1 =… Read More »