HTML中製作表頭

來源:互聯網
上載者:User

標籤:des   style   io   ar   sp   on   2014   html   bs   

<!doctype html>
  <html>
  <head>
  <meta charset="utf-8">
  <title>webrx-title-QQ:7031633</title>
  <meta name="description" content="簡介">
  <meta name="keywords" content="關鍵字">
  <link rel="stylesheet" type="text/css" href="index.css">
  <script src=""></script>
  </head>
   
   
  <body>
  <canvas id="myCanvas" width="300" height="300"></canvas>
  <script>
  var canvas = document.getElementById(‘myCanvas‘);
  var ctx = canvas.getContext(‘2d‘);
  ctx.fillStyle=‘#ff0000‘;
  ctx.fillRect(0,0,300,300);
   
  ctx.beginPath();
  ctx.moveTo(0,80);
  ctx.lineTo(300,300);
  ctx.strokeStyle="white";
  ctx.stroke();
   
  ctx.moveTo(100,0);
  ctx.lineTo(300,300);
  ctx.strokeStyle="white";
  ctx.stroke();
   
  ctx.font="20px 隸書";
  ctx.fillStyle = "green";
  ctx.fillText("星",180,50);
  ctx.fillText("期",230,130);
  </script>
  <hr>
  <table width="483" border="1" cellpadding="0">
  <tr height="100">
  <td width="92">
  <canvas id="m" width="94" height="98"></canvas>
  <script>
  var canvas = document.getElementById(‘m‘);
  var ctx = canvas.getContext(‘2d‘);
  ctx.fillStyle=‘#ffffff‘;
  ctx.fillRect(0,0,94,98);
   
  ctx.beginPath();
  ctx.moveTo(0,30);
  ctx.lineTo(94,98);
  ctx.strokeStyle="black";
  ctx.stroke();
   
  ctx.moveTo(35,0);
  ctx.lineTo(94,98);
  ctx.strokeStyle="black";
  ctx.stroke();
   
  ctx.font="20px 隸書";
  ctx.fillStyle = "green";
  ctx.fillText("星",60,30);
  ctx.fillText("期",230,130);
  </script>
  </td>
  <td width="92">&nbsp;</td>
  <td width="277">&nbsp;</td>
  </tr>
  <tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  </tr>
  </table>
  </body>
  </html>
 

HTML中製作表頭

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.