在线手册

  • func linear gradient

    ... stops: #grad {  /* For Safari 5.1 to 6.0 */  background: -webkit-linear-gradient(left,red,orange,yellow,green,blue,indigo,violet);   /* For Opera 11.1 to 12.0 */  background: -o-linear-gradient(left,red,orange,yellow ...

  • func radial gradient

    ... ,green,yellow,black);   /* For Opera 11.6 to 12.0 */   background: -o-radial-gradient(60% 55%, closest-side,blue,green,yellow,black);   /* For Firefox 3.6 to 15 */  background: -moz-radial-gradient(60% 55%, closest-side ...

  • jsref replace

    ... it yourself » Example Perform a global, case-insensitive replacement: var str = "Mr Blue has a blue house and a blue car"; var res = str.replace(/blue/gi, "red"); The result of res will be: Mr red has a ...

  • css colors legal

    ... 0 and 255 or a percentage value (from 0% to 100%). For example, the rgb(0,0,255) value is rendered as blue, because the blue parameter is set to its highest value (255) and the others are set to 0. Also, the following values define equal color ...

  • jsref search

    ... search: var str = "Mr. Blue has a blue house"; var n = str.search("blue"); The result of n will be: var str="Mr. Blue has a blue house" document.write(str.search("blue")); Try it yourself » Example ...

  • jsref search

    ... 更多实例 实例 执行一次对大小写敏感的查找: var str="Mr. Blue has a blue house"; document.write(str.search("blue")); 以上实例输出结果: var str="Mr. Blue has a blue house" document.write(str.search("blue")); 尝试一下 » 实例 执行一次忽略大小写的检索: var str="Mr ...

  • func repeating linear gradient

    ... 7%,green 10%); /* Standard syntax (must be last) */}#grad3 {height: 200px;background: -webkit-repeating-linear-gradient(90deg,red,blue 7%,green 10%); /* For Safari 5.1 to 6.0 */background: -o-repeating-linear-gradient(); /* For Opera 11.1 ...

  • jsref replace

    ... 到的。 技术细节 JavaScript 版本: 1.2 更多实例 实例 执行一个全局替换: var str="Mr Blue has a blue house and a blue car"; var n=str.replace(/blue/g,"red"); n 输出结果: Mr Blue has a red house and a red car 尝试一下 » 实例 执行一个全局替换, 忽略大小写: var ...

  • canvas globalcompositeoperation

    ... .fillStyle="red"; ctx.fillRect(20,20,75,50); ctx.globalCompositeOperation="source-over"; ctx.fillStyle="blue"; ctx.fillRect(50,50,75,50); ctx.fillStyle="red"; ctx.fillRect(150,20,75,50); ctx ...

  • canvas globalcompositeoperation

    ... .fillStyle="red"; ctx.fillRect(20,20,75,50); ctx.globalCompositeOperation="source-over"; ctx.fillStyle="blue"; ctx.fillRect(50,50,75,50); ctx.fillStyle="red"; ctx.fillRect(150,20,75,50); ctx ...

推广服务(新)
最新文章