使用SVG的path标签制作箭头:
制作效果图如下:
下面来看详细的代码:
drection.html
<embed src="drection.svg" width="300" height="100"
type="image/svg+xml"
pluginspage="http://www.adobe.com/svg/viewer/install/" />
drection.svg
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path d="M0 5 L30 5 L30 0 L40 10 L30 20 L30 15 L0 15 Z" style="fill:blue;stroke:red;stroke-width:1"/>
</svg>