03-03.svg
资源名称:EXT_study.rar [点击查看]
上传用户:zaktkj
上传日期:2022-08-08
资源大小:5770k
文件大小:2k
源码类别:
JavaScript
开发平台:
JavaScript
- <?xml version="1.0" encoding="UTF-8"?>
- <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="400" height="500" viewBox="0 0 400 500" style="font-weight:bold;font-family:arial,'lucida console',sans-serif,榛戜綋;font-size:14px;">
- <defs>
- <linearGradient id="line" x1="50%" x2="50%" y1="0%" y2="100%">
- <stop offset="20%" stop-color="#88AAEE"/>
- <stop offset="100%" stop-color="#224499"/>
- </linearGradient>
- <marker id="arrow" markerWidth="10" markerHeight="8" refX="4" refY="4" orient="auto">
- <path d="M0,0 8,4 0,8Z" fill="white" stroke="black"/>
- </marker>
- <g id="bg">
- <rect x="0" y="0" width="10" height="10" rx="5" ry="5"
- stroke="#223388" stroke-width="2" fill="url(#line)"/>
- </g>
- </defs>
- <rect x="0" y="0" width="400" height="500" fill="white"/>
- <g transform="translate(10,10)">
- <g transform="translate(0,100)">
- <circle cx="100" cy="50" r="55" stroke="#223388" stroke-width="2" fill="url(#line)"/>
- <text x="50" y="55" fill="white">onMouseDown</text>
- <line x1="140" y1="90" x2="155" y2="110" stroke="black" marker-end="url(#arrow)"/>
- </g>
- <g transform="translate(100,200)">
- <circle cx="100" cy="50" r="55" stroke="#223388" stroke-width="2" fill="url(#line)"/>
- <text x="50" y="55" fill="white">onMouseMove</text>
- <line x1="140" y1="10" x2="155" y2="-10" stroke="black" marker-end="url(#arrow)"/>
- </g>
- <g transform="translate(200,100)">
- <circle cx="100" cy="50" r="55" stroke="#223388" stroke-width="2" fill="url(#line)"/>
- <text x="60" y="55" fill="white">onMouseUp</text>
- </g>
- </g>
- </svg>