第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么我的文字有時候能顯示,有時沒有,并且有些要點擊2次才有效果

為什么我的文字有時候能顯示,有時沒有,并且有些要點擊2次才有效果

慕的地3494871 2016-10-27 13:54:07
<canvas id="mycanvas" width="1000" height="500">你的瀏覽器不支持畫布</canvas> <p id="composition">???????? <a href="#">source-over</a>???????? <a href="#">source-in</a>???????? <a href="#">source-out</a>???????? <a href="#">source-atop</a>???????? <a href="#">destination-over</a>???????? <a href="#">destination-in</a>???????? <a href="#">destination-out</a>???????? <a href="#">destination-atop</a>???????? <a href="#">lighter</a>???????? <a href="#">copy</a>???????? <a href="#">xor</a> </p><script>var mycanvas=document.getElementById('mycanvas');var context=mycanvas.getContext('2d');function drawComposition(composition){????????context.clearRect(0,0,1000,500);???????? context.save();???????? context.font="30px bold Arial";???????? context.textAlign="center";???????? context.textBaseline="middle";???????? context.fillStyle="#058";???????? context.shadowColor="blue";???????? context.shadowOffsetX=2;???????? context.shadowOffsetY=2;???????? context.shadowBlur=2;???????? context.fillText("globalCompositionOperation",500,20);???????? context.restore();???????? context.fillStyle="red";???????? context.beginPath();???????? context.moveTo(500,100);???????? context.lineTo(350,250);???????? context.lineTo(650,250);???????? context.closePath();???????? context.fill();???????? context.globalCompositeOperation=composition;???????? context.fillStyle="blue";???????? context.fillRect(500,175,200,200); } var a=document.getElementById('composition').getElementsByTagName('a'); for(var i=0;i<a.length;i++){???? a[i].onclick=function(){???? drawComposition(this.innerHTML); } }</script>
查看完整描述

2 回答

?
一瞬兒光

TA貢獻178條經(jīng)驗 獲得超70個贊

恩,剛貼錯了。


查看完整回答
反對 回復(fù) 2016-10-27
  • 2 回答
  • 0 關(guān)注
  • 1549 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號