- 通过加载微软urn:schemas-microsoft-com:vml命名空间中的VML技术来实现失真的处理,看下面代码。
- <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
- <!–[if IE 6]>
- <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:v=”urn:schemas-microsoft-com:vml”>
- <![endif]–>
- <htmlxmlns=”http://www.w3.org/1999/xhtml”>
- <metahttp-equiv=”Content-Type”content=”text/html; charset=utf-8″/>
- <head>
- <title>VML</title>
- <!–[if IE 6]>
- <style type=”text/css”>
- .vml{ behavior: url(#default#VML);}
- .iefix {display:none!important;}
- </style>
- <![endif]–>
- <styletype=”text/css”>
- img.iefix {-ms-interpolation-mode: bicubic;}
- </style>
- </head>
- <body>
- <!–[if IE 6]>
- <v:image src=”1.jpg” class=”vml” style=”width:500px;height:400px;display:block” />
- <![endif]–>
- <imgsrc=”1.jpg”class=”iefix”style=”width:500px;height:400px;display:block”/>
- </body>
- </html>