几秒钟后隐藏Div [英] Hide Div after Some seconds
本文介绍了几秒钟后隐藏Div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在一秒钟后隐藏"Div",并清除其计时器.请帮助
i want to hide "Div " after some second ,and also clear its timer pls help
推荐答案
您可以使用JavaScript的setTimeout()
函数来实现这个.例如:
You can use thesetTimeout()
function of JavaScript to achieve this. For example:
window.setTimeout("HideDiv()", 2000); //Hide Div after 2 seconds
function HideDiv()
{
//Hide your div here
}
这篇关于几秒钟后隐藏Div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文