处理IE6 照片变小后出現锯齿的难题

2021-03-17 07:11 jianzhan
! DOCTYPEhtmlPUBLIC-//W3C//DTDXHTML1.0Transitional//ENTR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns =1999/xhtml xmlns:v =urn::vml meta http-equiv =Content-Type content =text/html;charset=ut

处理IE6 照片变小后出現锯齿的难题

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN TR/xhtml1/DTD/xhtml1-transitional.dtd

html xmlns= 1999/xhtml xmlns:v= urn::vml

meta http-equiv= Content-Type content= text/html; charset=utf-8 /

head

  title VML /title

  style type= text/css

  /*v\:* { behavior: url(#default#VML);}*/

  .vml{ behavior: url(#default#VML);}

  img{width:343px;height:257px;display:block;}

  img.thumb{-ms-interpolation-mode: bicubic;}

  /style

/head

body

VML:

v:image src= name= img id= vmlimg >
Old:

img src= name= img /

Bicubic:

img src= name= img >
/body

/html

关键点层面:

1.应用v:image,因此必须 xmlns:v= urn::vml

2.v:image务必特定width和height,且display:block;

3.非IE访问器不兼容;

4.不兼容getElementsByName及其getElementsByTagName获得dom,根据ID能够 共享到:
文中"处理IE6 照片变小后出現锯齿的难题"由远航网站站长搜集梳理而成,仅作大伙儿学习培训与参照应用。大量网站建设实例教程尽在远航网站站长站。