Last active
June 4, 2020 08:56
-
-
Save taroj1205/69df8c0c3d35b4686f66c8ab7d9c0687 to your computer and use it in GitHub Desktop.
マルバツゲームです。VS Codeの”Run"機能を使ってマルバツゲームをlocalhostで実行しようとするとChromeではtableが表示されますが、Edgeでは表示されません。どなたか助けてください。必要な情報があったら教えて下さい。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.cell { | |
width: 100px; height: 100px; | |
font-family:Arial, Helvetica, sans-serif; font-size: 60pt; text-align: center; | |
} | |
</style> | |
<script> | |
var count = 0; | |
function clickMe(e) { | |
if (count++ % 2 == 0) { | |
e.textContent = "o"; | |
} else { | |
e.textContent = "x"; | |
} | |
} | |
</script> | |
</head> | |
<body> | |
<table border="1" border-color="black"> | |
<tr> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
</tr> | |
<tr> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
</tr> | |
<tr> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
<td class="cell" onclick="clickMe(this);"> </td> | |
</tr> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment