​图片压缩​

​百亿站点​

<style>
p{
width: 100px;
height: 100px;
display: none;
background: red;
}
</style>
<body>
<input type="button" value="提交" id="tj">
<p id="p"></p>
</body>
<script>
var btn = document.getElementById("tj");
var t = true;
btn.onclick = function dian() {
var p = document.getElementById("p");
if (t) {
p.style.display = "block";
} else {
p.style.display = "none";
}
t = !t;
}

</script>