最新回答 / 山顶树上
<svg xmlns="http://www.w3.org/2000/svg"> <defs> <radialGradient id="grad3" cx="0.5" cy="0.5" r="0.7" fx="0.5" fy="0.5"> <stop offset="0" stop-color="rgb(20,151,252)" /> <stop offset="0.5" stop-color="rgb(164,105,190)" />...
2017-06-22
最新回答 / yaoxtao
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><style> html,body{ margin:0; padding:0; width:100%; ...
2017-06-06
最新回答 / kx00012kx
创建svg元素是都需要加命名空间,所以创建时只能用createElementNS()方法,但只有部分属性在创建时需要命名空间,这部分属性就包括 xlink:href , xlink:title、xlink:show等创建需要命空间的属性时,就要使用setAttributeNS()方法
2017-02-17
最赞回答 / GXL30303
你定个对象 . onclick=function move( ){ 想怎么动的代码 requestAnimationFrame(move);};激活一次后就会不断执行move这函数
2017-02-02