日期:2014-05-19  浏览次数:20406 次

救命啊!~~~在线等答案!VML的问题!!!
就是用VML在一张图上画线
<%@   Page   Language= "C# "   AutoEventWireup= "true "   CodeFile= "Default2.aspx.cs "   Inherits= "Default2 "   %>

<HTML       xmlns:v>       <head>
<title> index </title>

    <style>      
    v\:*       {behavior:url(#default#VML);}      
    </style>      
       
    <script       language= "JavaScript ">      
    function       createPoint()      
    {
   
    var       strElement= " <v:PolyLine     style= '   z-index:5   position:relative   '   Points=0,0,0,100,20,150,200,100   StrokeWeight=3px   StrokeColor=red   > <v:stroke       EndArrow=Classic/> </v:PolyLine> ";      
    var       newPoint       =       document.createElement(strElement);    
    document.body.appendChild(newPoint);
}      
      </script>     </head>  
    <body>
          <input       id= "cmdDis "       style= "WIDTH:       88px;       HEIGHT:       24px "       type= "button "       value= "显示 "       onclick= "createPoint() "/>
            <img   src= "test.jpg "   style= "   z-index:0 "   />        
    </body>
    </HTML>

怎么那条线不画在那个IMG上啊?!
那位高手帮忙给解决一下啊!!!

------解决方案--------------------
mark 学习
------解决方案--------------------
加入 ASP。NET C#群吧 群号:1873156
------解决方案--------------------
<HTML xmlns:v> <head>
<title> index </title>

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

<script language= "JavaScript ">
function createPoint()
{

var strElement= " <v:PolyLine style= ' position:absolute;z-index:3; ' Points=0,0,0,100,20,150,200,100 StrokeWeight=3px StrokeColor=red > <v:stroke EndArrow=Classic/> </v:PolyLine> ";
var newPoint = document.createElement(strElement);
document.body.appendChild(newPoint);
}
</script> </head>
<body>
<input id= "cmdDis " style= "WIDTH: 88px; HEIGHT: 24px " type= "button " value= "?示 " onclick= "createPoint() "/>
<img src= "aspdotnet.bmp " style= "position:absolute;z-index:0; " />
</body>
</HTML>