var notSortable = '';
alert($(' > li:not(' + notSortable + ')', settings.columns).text());上边这一句
在jquery1.2.6中就能正常打印出数据,
在jquery1.4.4中却为空请教下是什么原因?该如何解决在jquery1.4.4中出现的问题。
alert($(' > li:not(' + notSortable + ')', settings.columns).text());上边这一句
在jquery1.2.6中就能正常打印出数据,
在jquery1.4.4中却为空请教下是什么原因?该如何解决在jquery1.4.4中出现的问题。
if(notSortable==''||notSortable==null){
return $('> li:not(null)', settings.columns);
}else{
return $('> li:not(' + notSortable + ')', settings.columns);
}
解决。
还有一个问题:
.widget-head a.remove{
float: right; /*向右对齐 right left none*/
display: inline; /*设置是否及如何显示元素*/
background: url(img/buttons.gif) no-repeat -24px 0;/*背景颜色,图片,是否重复,以及图片的起始坐标*/
width: 14px;
height: 14px;
margin: 8px 4px 8px 0; /*四周的补白,即四周距离其他的距离*/
text-indent: -9999em; /*首行文字的文本缩进功能*/
outline: none;/*设置元素周围的轮廓线*/
}
这段css 在其它浏览器(包括ie6以上)中都能正常的起作用 也能正常的看到background中的图片
但是在ie6中却看不到,当float: right 修改成left,center,none都可以正常的看到
但是位置却不对了。
另,谢谢3楼的建议。
.widget-head a.remove{
float: right; /*向右对齐 right left none*/
_float:none; /*只有IE6可见*/
_padding-left:数值调试 /*在IE6里单独调试这个,达到位置对齐,或者margin-left*/
display: inline; /*设置是否及如何显示元素*/
background: url(img/buttons.gif) no-repeat -24px 0;/*背景颜色,图片,是否重复,以及图片的起始坐标*/
width: 14px;
height: 14px;
margin: 8px 4px 8px 0; /*四周的补白,即四周距离其他的距离*/
text-indent: -9999em; /*首行文字的文本缩进功能*/
outline: none;/*设置元素周围的轮廓线*/
}
问题已经解决,不是浏览器的问题
应该是我的css中的注释有问题,可能里边有不能识别的字符,去掉/**/就可以了 。