숨겨진 속성을 사용하여 HTML 페이지에서 하나의 이미지를 숨길 수 있습니다. 하지만 난 document.getElementById("check").style.visibility="visible";
에서 자바 스크립트를 통해 볼 수 있도록 할 수없는 오전 내 코드는이미지가 동적으로 표시되지 않습니다.
<html>
<head>
<style type="text/css">
</style><script type="text/javascript">
function myFunction()
{
document.getElementById("check").style.visibility="visible";
}
</script>
</head>
<body>
<table>
<img class="hide" src="check.jpg" id="check" hidden="true" height="300" width="400">
<tr>
<td>
<img src="1.jpeg" onclick="myFunction()">
</td>