我有一个 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 十秒钟。
你能帮我吗 谢谢。
答案 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)