This article mainly introduces the problem that jquery paging plug-in jpaginate is incompatible with ie. If you need it, you can refer to the next paging plug-in, the demo downloaded from the Internet is a little different in ie versions, but it can still be used.
However, it cannot be displayed on my page. It may be caused by too many p nesting or position locating.
I changed the source code to display normally in ie7, ie8, and ie9. The following are some source code. It's hard to find something wrong with others. The key is that ie.
The Code is as follows:
Var bVer = navigator. appVersion;
Var ver;
If (bVer. indexOf ('msie 7.0 ')> 0 ){
Ver = "ie7 ";
}
If (ver = 'ie7 '){
_Ulwrapp.css ('width', outsidewidth + 72 + 'px ');
_Pwrapright.css ('left', outsidewidth_tmp + 6 + 72 + 'px ');
}
Else {
_Ulwrapp.css ('width', outsidewidth + 'px ');
_Pwrapright.css ('left', outsidewidth_tmp + 6 + 'px ');
}
Modified code:
The Code is as follows:
If (ver = 'ie7' | ver = 'ie8' | ver = 'ie9 '){
_Ulwrapp.css ('width', outsidewidth + 72 + 'px ');
_Ulwrapp.css ('float', 'left'); // This is the added code.
_Pwrapright.css ('left', outsidewidth_tmp + 6 + 72 + 'px ');
}
: Normal
: In my environment
: Add if (ver = 'ie8') {} (my environment is ie8)
: After adding _ulwrapp.css ('float', 'left'); //, it is possible to test ie7, ie8, and ie9, but there is a little asymmetry.