Jquery judges Javascript in IE6 Browser

Source: Internet
Author: User

The jquery blog still has a 3D map, and Firefox Google IE has been done, and the rest is still ie6.
To ensure quick launch, you have to select CSS hack
Because some Div widths are determined based on the screen width Js.
Dumb, even CSS hack is not neat.
The hateful Internet Explorer 6 has spent a whole morning tossing you.
This is not a general sense of nausea. You cannot use JavaScript to give IE6 a judgment.
Jquery API
$. Available value of the browser kernel identifier: safari opera MSIE Mozilla
$. Typical browser rendering engine version: Internet Explorer: 6.0, 7.0 Mozilla/Firefox/flock/Camino: 1.7.12, 1.8.1.3 Opera: 9.20 Safari/WebKit: 312.8, 418.9
$. Support. style is a set of attributes used to display the characteristics and bugs of different browsers.
The final intersection result is that the evil is quickly pushed to IE6.
Code
If ($. browser. MSIE & ($. browser. Version = "6.0 ″)&&! $. Support. Style ){
// Code
}

Converting from jquery http://www.jqueryba.com/282.html

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.