Vb1988: Javascript Button schrumpft beim Anklicken

Beitrag lesen

Wenn man die Buttons anklickt, werden sie kleiner, siehe Schnappschuss-Bild http://snag.gy/ycw6po.jpg -Wie kann man verhindern, dass die Buttons schrumpfen? Der verwendete Browser ist Firefox (Windows10). Tryit Editor : http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_unescape

<html>
<body>
<script>
function aaa() {document.activeElement.style.backgroundColor = '#B2DD28';}
</script>
<button type="button" onclick="aaa()">0022</button>
<button type="button" onclick="aaa()">0023</button>
<button type="button" onclick="aaa()">0024</button>
<button type="button" onclick="aaa()">0025</button>
<button type="button" onclick="aaa()">0026</button>
<button type="button" onclick="aaa()">0027</button><br>
<button type="button" onclick="aaa()">0022</button>
<button type="button" onclick="aaa()">0023</button>
<button type="button" onclick="aaa()">0024</button>
<button type="button" onclick="aaa()">0025</button>
<button type="button" onclick="aaa()">0026</button>
<button type="button" onclick="aaa()">0027</button>
</body>
</html>