问题
我试图让一个层看起来像是一堵墙倒塌,露出它背后的层.我已经设置了两个固定的div位置."Wall"div的z-index为9999,"Background"div的z-index为0;
在我测试的Webkit浏览器(Safari/IOS)中,似乎一旦动画在"墙"上开始,z索引就会丢失或被忽略,导致"墙"层突然消失在背景div后面.
关于如何保留图层的z索引的任何想法?提前致谢!
示例代码 (注意:底部的jsFiddle)
HTML代码
<div id="wall">
This is the wall
</div>
<div id="background">
This is the background
</div>
<button id="start" style="float: right;">
Flip Down
</button>
Run Code Online (Sandbox Code Playgroud)
一些javascript启用按钮
$('#start').click(function(){
alert('Should Fall Down like a wall, revealing the background');
$('#wall').addClass('animated flipDown');
});
Run Code Online (Sandbox Code Playgroud)
CSS代码(来自animate.css)
#wall{
background-color: #F00;
width: 100px;
height: 100px;
position:fixed;
top:0;
left:0;
z-index: 9999;
}
#background{
background-color: #00F;
width: 100px;
height: 100px;
position:fixed;
top:0;
left:0;
z-index: 0;
}
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
} …Run Code Online (Sandbox Code Playgroud) 我正在尝试在亚马逊上设置一个生产mongo系统,用作实时指标系统的数据存储区,
我最初在市场中使用了MongoDB AMI [1],但我很困惑,因为只有一个数据EBS.我读过Mongo建议在EBS存储上使用RAID 10(每台服务器上有8个EBS).另外,我已经读过,生产的最低限度是主要/次要的仲裁.RAID 10仍然是推荐的设置,还是一个配置的IOPS EBS足够?
请指教.我们是一家小商店,那么我们可以逃脱的最低限度是什么,并且仍然相当安全?
[1]具有1000 IOPS的MongoDB 2.4 - 数据:200 GB @ 1000 IOPS,日志:25 GB @ 250 IOPS,日志:10 GB @ 100 IOPS
我试图从受NYC MUG/SimpleReach架构启发的实时指标系统中提取报表数据,也许我的想法仍然停留在SQL模式中.
数据存储在这样的文档中......
{
"_id": ObjectId("5209683b915288435894cb8b"),
"account_id": 922,
"project_id": 22492,
"stats": {
"2009": {
"04": {
"17": {
"10": {
"sum": {
"impressions": 11
}
},
"11": {
"sum": {
"impressions": 603
}
},
},
},
},
}}
Run Code Online (Sandbox Code Playgroud)
我一直在尝试聚合管道的不同变体而没有成功.
db.metrics.aggregate({
$match: {
'project_id':22492
}}, {
$group: {
_id: "$project_id",
'impressions': {
//This works, but doesn't sum up the data...
$sum: '$stats.2009.04.17.10.sum.impressions'
/* none of these work.
$sum: ['$stats.2009.04.17.10.sum.impressions',
'$stats.2009.04.17.11.sum.impressions']
$sum: {'$stats.2009.04.17.10.sum.impressions',
'$stats.2009.04.17.11.sum.impressions'}
$sum: '$stats.2009.04.17.10.sum.impressions',
'$stats.2009.04.17.11.sum.impressions'
*/
}
} …Run Code Online (Sandbox Code Playgroud)