实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>SVG 实例 - 自学教程(runoops.com)</title> </head> <body> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <g fill="none" stroke="black" stroke-width="9" stroke-dasharray="5,5"> <path d="M5 20 300 20" stroke="red" /> <path d="M5 40 300 40" stroke="black" stroke-width="3" stroke-dasharray="10,10"/> <path d="M5 60 300 60" stroke="blue" stroke-width="5" stroke-dasharray="20,20"/> </g> </svg> </body> </html>
运行结果: