如何显示 div 10 秒然后使用 JQuery 隐藏它

时间:2021-05-27 18:00:19

标签: html jquery css

我有一个 div,即

<div class="msg-panel" id="mydiv"></div>

CSS 代码:

 .msg-panel {
        position: absolute;
        height: 35px;
        width: 200px;
        background-color: green;
        top: 30%;
        left: 50%;
        color: #fff;
        display: none;
        border-radius: 20px;
        font-weight: bold;
    }

我想在点击按钮时显示这个 div 十秒钟。

你能帮我吗 谢谢。

1 个答案:

答案 0 :(得分:0)

这应该有效:

select year(day), month(day),
       sum(case when value = 1 then 1 else 0 end) as workday,
       sum(case when value = 2 then 1 else 0 end) as vacation
from table1
group by year(day), month(day)