Jquery paging plug-in jpaginate is incompatible with IE _ jquery-js tutorial

Source: Internet
Author: User
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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.