📜  显示图像 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:42.183000             🧑  作者: Mango

代码示例1
HTML:

Show image

JavaScript:
document.getElementById("showImage").onclick = function() {
    document.getElementById("theImage").style.visibility = "visible";
}

CSS:
#theImage { visibility: hidden; }