其中EndArrow="Open" Open 设置为空
<HTML xmlns:v>
<HEAD>
<style>
v\:*{behavior:url(#default#VML);position:absolute;}o\:*{behavior:url(#default#VML);}
</style>
</head>
<body>
<v:PolyLine id="ply1" filled="false" Points="0,0 0,100 20,150 200,100" strokeweight="2" style="position:relative">
<v:stroke StartArrow="" EndArrow="" dashstyle="Dot" />
</v:PolyLine>
<input type=button onclick="doTest()" value="测试去掉箭头">
<script language="javascript">
function doTest(){
var obj=document.all.ply1;
//obj.childNodes[0].removeAttribute("endArrow");
}
</script>
</body>
</html>
<HTML xmlns:v>
<HEAD>
<style>
v\:*{behavior:url(#default#VML);position:absolute;}o\:*{behavior:url(#default#VML);}
</style>
</head>
<body>
<v:PolyLine id="ply1" filled="false" Points="0,0 0,100 20,150 200,100" strokeweight="2" style="position:relative">
<v:stroke StartArrow="" EndArrow="" dashstyle="Dot" />
</v:PolyLine>
<input type=button onclick="doTest()" value="测试去掉箭头">
<script language="javascript">
function doTest(){
var obj=document.all.ply1;
//obj.childNodes[0].removeAttribute("endArrow");
}
</script>
</body>
</html>
<HEAD>
<style>
v\:*{behavior:url(#default#VML);position:absolute;}o\:*{behavior:url(#default#VML);}
</style>
</head>
<body>
<v:PolyLine id="ply1" filled="false" Points="0,0 0,100 20,150 200,100" strokeweight="2" style="position:relative">
<v:stroke StartArrow="" EndArrow="Open" dashstyle="Dot" />
</v:PolyLine>
<input type=button onclick="doTest()" value="测试去掉箭头">
<script language="javascript">
function doTest(){
var obj=document.all.ply1;
obj.stroke.endArrow = "None";
}
</script>
</body>
</html>
endArrow、startArrow没有 ""值类型可选类型:
None (default)
Block
Classic
Diamond
Oval
Open
<HEAD>
<style>
v\:*{behavior:url(#default#VML);position:absolute;}o\:*{behavior:url(#default#VML);}
</style>
</head>
<body>
<v:PolyLine id="ply1" filled="false" Points="0,0 0,100 20,150 200,100" strokeweight="2" style="position:relative">
<v:stroke id="ply2" StartArrow="" EndArrow="Open" dashstyle="Dot" />
</v:PolyLine>
<input type=button onclick="doTest()" value="测试去掉箭头">
<script language="javascript">
function doTest(){
vS=document.getElementById("ply2");
vS.EndArrow="None";
}
</script>
</body>
</html>