下面这段简单的代码为什么没有绝对定位呢~?
根据我试验得到的结果就是,dtd声明下的html有严格的检查,top:200 必须写成top:200px 。。。呵呵
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
>
< html xmlns ="http://www.w3.org/1999/xhtml" >
< HEAD >
< meta http-equiv ="Content-Type" content ="text/html;charset=UTF-8" >
</ HEAD >
< BODY >
< img id ="img1" src ="di-3.png" style ="position:absolute;top:200;left:200" />
</ BODY >
</ HTML >
< html xmlns ="http://www.w3.org/1999/xhtml" >
< HEAD >
< meta http-equiv ="Content-Type" content ="text/html;charset=UTF-8" >
</ HEAD >
< BODY >
< img id ="img1" src ="di-3.png" style ="position:absolute;top:200;left:200" />
</ BODY >
</ HTML >