The jquery paging plug-in jpaginate is incompatible with IE.

Source: Internet
Author: User

A paging plug-in is available. The demo downloaded from the internet is somewhat 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 Div nesting or position positioning.

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.

var bVer = navigator.appVersion;var ver ;if(bVer.indexOf('MSIE 7.0') > 0){ver = "ie7";}if(ver == 'ie7'){_ulwrapdiv.css('width',outsidewidth+72+'px');_divwrapright.css('left',outsidewidth_tmp+6+72+'px');}else{_ulwrapdiv.css('width',outsidewidth+'px');_divwrapright.css('left',outsidewidth_tmp+6+'px');}

 

Modified code:

If (Ver = 'ie7' | ver = 'ie8' | substring ('float', 'left'); // the code of the vertex _divwrapright.css ('left ', outsidewidth_tmp + 6 + 72 + 'px ');}

 

Figure 1: normal

Figure 2: in my environment

Figure 3: add If (Ver = 'ie8') {} (my environment is IE8)

Figure 4: After adding _ulwrapdiv.css ('float', 'left'); //, it can be used in IE7, IE8, and ie9, but there is a little asymmetry.

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.