Filled:是否要填充图形,如果图形不是封闭的,也会自动封闭图形进行填充。当Filled="true"(默认),fillcolor才有效果;

解决方案 »

  1.   

    上面的写错了,我要做的是一个多边形
    <v:shape id=vml2 style="Z-INDEX:3003;LEFT:0;WIDTH:1024;TOP:0;HEIGHT:768;POSITION:absolute" coordsize="1024,768" CoordOrig="0,0" filled="t" fillcolor="red" strokecolor="black" strokeweight="1px" path=" m 50,50 l 100,50,100,100,75,75 ,50,100  xe">
    这代码画出来得有问题,在最后2个节点上
      

  2.   

    <v:shape id=vml2 style="Z-INDEX:3003;LEFT:0px;WIDTH:1024px;POSITION:absolute;TOP:0px;HEIGHT:768px" CoordOrig="0,0" coordsize="1024,768" filled="t" fillcolor="red" strokecolor="black" strokeweight=".75pt" path=" m50,50 l100,50,100,100,50,50,0,100,0,50 xe">
     </v:shape>
    这个才是你话的那种图形
      

  3.   

    m50,50
    的意思不是把画笔移动到 (x,y)吗?为什么Y变了而X没有变呢?
      

  4.   

    那就<v:shape id=vml2 style="Z-INDEX:3003;LEFT:0px;WIDTH:1024px;POSITION:absolute;TOP:0px;HEIGHT:768px" CoordOrig="0,0" coordsize="1024,768" filled="t" fillcolor="red" strokecolor="black" strokeweight=".75pt" path=" m50,50 l100,50,100,100,50,50,0,100,50,50 xe">
     </v:shape>
    这个xe是他前面的这个坐标闭合
      

  5.   

    <v:shape id=vml2 style="Z-INDEX:3003;LEFT:0px;WIDTH:1024px;POSITION:absolute;TOP:0px;HEIGHT:768px" CoordOrig="0,0" coordsize="1024,768" filled="t" fillcolor="red" strokecolor="black" strokeweight=".75pt" path=" m50,50 l100,50,100,100,50,50,0,100,0,50 xe">
     </v:shape>
    这个才是你要的效果你没有看吗?