03-03.svg
上传用户:zaktkj
上传日期:2022-08-08
资源大小:5770k
文件大小:2k
源码类别:

JavaScript

开发平台:

JavaScript

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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;">
  3.     <defs>
  4.         <linearGradient id="line" x1="50%" x2="50%" y1="0%" y2="100%">
  5.             <stop offset="20%" stop-color="#88AAEE"/>
  6.             <stop offset="100%" stop-color="#224499"/>
  7.         </linearGradient>
  8.         <marker id="arrow" markerWidth="10" markerHeight="8" refX="4" refY="4" orient="auto">
  9.             <path d="M0,0 8,4 0,8Z" fill="white" stroke="black"/>
  10.         </marker>
  11.         <g id="bg">
  12.             <rect x="0" y="0" width="10" height="10" rx="5" ry="5"
  13.                 stroke="#223388" stroke-width="2" fill="url(#line)"/>
  14.         </g>
  15.     </defs>
  16.     <rect x="0" y="0" width="400" height="500" fill="white"/>
  17.     <g transform="translate(10,10)">
  18.         <g transform="translate(0,100)">
  19.             <circle cx="100" cy="50" r="55" stroke="#223388" stroke-width="2" fill="url(#line)"/>
  20.             <text x="50" y="55" fill="white">onMouseDown</text>
  21.             <line x1="140" y1="90" x2="155" y2="110" stroke="black" marker-end="url(#arrow)"/>
  22.         </g>
  23.         <g transform="translate(100,200)">
  24.             <circle cx="100" cy="50" r="55" stroke="#223388" stroke-width="2" fill="url(#line)"/>
  25.             <text x="50" y="55" fill="white">onMouseMove</text>
  26.             <line x1="140" y1="10" x2="155" y2="-10" stroke="black" marker-end="url(#arrow)"/>
  27.         </g>
  28.         <g transform="translate(200,100)">
  29.             <circle cx="100" cy="50" r="55" stroke="#223388" stroke-width="2" fill="url(#line)"/>
  30.             <text x="60" y="55" fill="white">onMouseUp</text>
  31.         </g>
  32.     </g>
  33. </svg>