Copy code The code is as follows:<!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]--> With the above code, jquery.bgiframe.js is loaded only when using IE. This is very important because if you load everything you will waste bandwidth and the page will open slowly! If it is specifically for IE6, change it to if IE6. Copy code The code is as follows:<!--[if IE 6]> <script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script> <script type="text/javascript"> DD_belatedPNG.fix('.png_bg, img, li'); </script> <![endif]--> Or solve the layout problem of different versions of IE. The following only loads ie.css in IE7 Copy code The code is as follows:<!--[if lte IE 7]> <link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" /> <![endif]--> |
<<: 100-1% of the content on the website is navigation
>>: Details of using vue activated in child components
How to set the position of the block element in t...
Mixin method: The browser cannot compile: The old...
Table of contents Create a new user Authorize new...
1. To optimize the query, try to avoid full table...
Things to note 1. First, you need to create a my....
This article is used to record the installation o...
Difference between HTML and XHTML 1. XHTML elemen...
First and foremost, I am a web designer. To be mor...
When I first came into contact with HTML, I alway...
MySQL replace and replace into are both frequentl...
The project requirements are: select date and tim...
Viewing and Setting SQL Mode in MySQL MySQL can r...
#String concatenation concat(s1,s2); concatenate ...
Table of contents 01 CMD 02 ENTRYPOINT 03 WORKDIR...