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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

我的代碼不知道哪兒錯(cuò)了,請(qǐng)各位幫我看看~萬(wàn)分感謝

我的代碼不知道哪兒錯(cuò)了,請(qǐng)各位幫我看看~萬(wàn)分感謝

qq_悄悄_0 2016-07-04 17:58:40
<!DOCTYPE html><html>?? ?<head>?? ??? ?<meta charset="UTF-8">?? ??? ?<title></title>?? ??? ?<style type="text/css">?? ??? ??? ?#buttons{margin:50px 10%;}?? ??? ??? ?#buttons a{margin-top:50px;margin-right:10px;text-decoration:none;font-size:20px;color:black;padding:5px;border:1px solid black;}?? ??? ?</style>?? ?</head>?? ?<body>?? ??? ?<canvas id="canvas" height="800" width="1200" style="margin: 0 20%;border:1px solid black;">此瀏覽器不支持canvas,請(qǐng)更換瀏覽器</canvas>?? ??? ?<div id="buttons">?? ??? ??? ?<a href="#">source-over</a>?? ??? ??? ?<a href="#">source-atop</a>?? ??? ??? ?<a href="#">source-in</a>?? ??? ??? ?<a href="#">source-out</a>?? ??? ??? ?<a href="#">destination-over</a>?? ??? ??? ?<a href="#">destination-atop</a>?? ??? ??? ?<a href="#">destination-in</a>?? ??? ??? ?<a href="#">destination-out</a>?? ??? ??? ?<a href="#">lighter</a>?? ??? ??? ?<a href="#">xor</a>?? ??? ??? ?<a href="#">copy</a>?? ??? ??? ??? ?</div>?? ??? ?<script type="text/javascript">?? ??? ??? ?window.onload=function(){?? ??? ??? ??? ?draw("source-over");?? ??? ??? ??? ?var buttons=document.getElementById("#buttons").getElementsByTagName("a");?? ??? ??? ??? ?for(var i=0;i<buttons.length;i++){?? ??? ??? ??? ??? ?buttons[i].onclick=function(){?? ??? ??? ??? ??? ??? ?draw(this.text);?? ??? ??? ??? ??? ??? ?return false;?? ??? ??? ??? ??? ?}?? ??? ??? ??? ?}?? ??? ??? ?}?? ??? ??? ??? ??? ?function draw(x){?? ??? ??? ??? ??? ?var canvas = document.getElementById("canvas");?? ??? ??? ??? ??? ?var context = canvas.getContext("2d");?? ??? ??? ??? ??? ?/**清空畫布**/?? ??? ??? ??? ??? ?context.clearRect(0,0,canvas.width,canvas.height);?? ??? ??? ??? ??? ?/**標(biāo)題**/?? ??? ??? ??? ??? ?context.font="bold 40px sans-serif";?? ??? ??? ??? ??? ?context.textAlign="center";?? ??? ??? ??? ??? ?context.textBaseline="middle";?? ??? ??? ??? ??? ?context.fillText("globalCompsitionOperation的值為:"+x,canvas.width/2,60);?? ??? ??? ??? ??? ?/**方框**/?? ??? ??? ??? ??? ?context.fillStyle="blue";?? ??? ??? ??? ??? ?context.fillRect(300,150,500,500);?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?context.globalCompositeOperation =x;?? ??? ??? ??? ??? ?/**三角形**/?? ??? ??? ??? ??? ?context.fillStyle="red";?? ??? ??? ??? ??? ?context.beginPath();?? ??? ??? ??? ??? ?context.moveTo(700,250);?? ??? ??? ??? ??? ?context.lineTo(1000,750);?? ??? ??? ??? ??? ?context.lineTo(400,750);?? ??? ??? ??? ??? ?context.closePath();?? ??? ??? ??? ??? ?context.fill();?? ??? ??? ??? ?}?? ??? ??? ??? ??? ?</script>?? ?</body></html>
查看完整描述

3 回答

?
5E

TA貢獻(xiàn)115條經(jīng)驗(yàn) 獲得超39個(gè)贊

var buttons=document.getElementById("#buttons").getElementsByTagName("a");

這句話中的document.getElementById("buttons")應(yīng)該這樣寫,沒(méi)有#。

查看完整回答
1 反對(duì) 回復(fù) 2016-07-05
?
恒爺

TA貢獻(xiàn)18條經(jīng)驗(yàn) 獲得超16個(gè)贊


我的水平還沒(méi)有去到那么高,知道靜靜看著大神回答

查看完整回答
反對(duì) 回復(fù) 2016-07-05
?
5E

TA貢獻(xiàn)115條經(jīng)驗(yàn) 獲得超39個(gè)贊

頁(yè)面出現(xiàn)什么問(wèn)題了?

查看完整回答
反對(duì) 回復(fù) 2016-07-05
  • 3 回答
  • 1 關(guān)注
  • 1241 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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