代码

<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>html钢琴</title><script src="js/js.js"></script><link href="css/css.css" type="text/css" rel="stylesheet"></head><body><div id="all"><h1 style="width:100%;text-align:center;">建议使用谷歌浏览器</h1><div id="main"><div id="key60" class="key whiteKey">q<br>a<br>z</div><div id="key62" class="key whiteKey"><br>s<br>x</div><div id="key64" class="key whiteKey"><br>d<br>c</div><div id="key65" class="key whiteKey">r<br>f<br>v</div><div id="key67" class="key whiteKey"><br>g<br>b</div><div id="key69" class="key whiteKey"><br>h<br>n</div><div id="key71" class="key whiteKey"><br>j<br>m</div><div id="key72" class="key whiteKey">i<br>k<br>,</div><div id="key61" class="key blackKey">w</div><div id="key63" class="key blackKey">e</div><div id="key66" class="key blackKey">t</div><div id="key68" class="key blackKey">y</div><div id="key70" class="key blackKey">u</div></div><div id="comment">  </div></div></body></html>

效果