<!doctype html><html><head><style> #mydiv { width: 400px; height: 500px; background-color: lightblue;}</style></head><body><p>click the "try it" button to set the display property of the div element to "none":</p><button onclick="myFunction()">Try it</button><div id="myDIV">This is my DIV element.</div><p><b>Note:</b> The element will not take up any space when the display property set to "none".</p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/ai/1875">
<img src="https://img.php.cn/upload/ai_manual/000/969/633/68b6c50ec09de372.png" alt="Upscale">
</a>
<div class="aritcle_card_info">
<a href="/ai/1875">Upscale</a>
<p>AI图片放大工具</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="Upscale">
<span>85</span>
</div>
</div>
<a href="/ai/1875" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="Upscale">
</a>
</div>
<script>function myFunction() { document.getElementById("myDIV").style.display = "none";}</script></body></html>
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号