我记得网上好像有一些例子vml什么的,lz可以www.baigoogledu.com搜一下

解决方案 »

  1.   

    这问题估计没答案了,VML说起来好像连圆都能画,可惜这个环境不太好用,
    换个问题问问,DIV高度自适应的,比如DIV实现margin-top:5px;margin-bottom:5px;别写死了
      

  2.   

    vml画线的例子。不懂vml的可以去看看风云舞写的vml极道编程<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> 
    <head> 
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 
        <style type="text/css">    
        v\:* {      behavior:url(#default#VML);    }    
        </style> 
    </head> 
    <body> 
    <v:line 
    from='200,200' 
    to='300,100' 
    style='position:absolute;z-index:8'> 
    </v:line> 
    </body> 
    </html> <script> 
    var R =function(){}; 
    R.prototype.createLine = function (startX,startY,endX,endY){ 
        var le = document.createElement( " <v:line> <v:line>" ); 
        le.from = startX + ',' + startY ; 
        le.to = endX + ',' + endY ; 
        le.strokecolor= "red" ; 
        le.strokeweight= "1pt" ; 
        return le; 

    var d =new R(); 
    document.body.appendChild(d.createLine(1,1,200,100)); 
    </script> 
    通过js插件来画线或者画圆,这里有个网站,可以参考一下。把这个js插件下下来,可以直接调用函数
    http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
      

  3.   

    只化线的话,用Div模拟像素点就可以了