小编use*_*523的帖子

从文档中删除空字段的名称

我已经能够在 MongoDB 集合中添加大量空键。由于 MongoDB 中不允许使用空键,因此我很难使用 MongoDB 中的常规方法取消设置键。使用 mongo shell 是否有解决此类问题的方法?

{
    "foo": "bar",
    "": "I should not exist, I have no key..."
}
Run Code Online (Sandbox Code Playgroud)

mongodb mongodb-query

5
推荐指数
1
解决办法
1546
查看次数

显示:firefox中的表溢出父div

问题和疑问

当使用display:table和display:table-cell to vertical align a element时,Firefox溢出父容器的宽度.查看实时演示以检查代码.

HTML

<div class="hew storeloader" href="/stores/arti-zen-eskilstuna-city">
    <div class="holder hp100" style="height: 325px;">
        <div class="storecontent">
            <img alt="" src="/img/logo-white.svg">
            <p>Arti.Zen Eskilstuna City</p>
        </div>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS

section.stores .storeloader {
    width: 47.82609%;
    float: left;
    margin-right: 4.34783%;
    display: inline;
    overflow: hidden;
    background: #000;
    color: #FFF;
    text-align: center;
    margin: 10px 0;
    position: relative;
    cursor: pointer;

section.stores .storeloader .holder {
    width: 100%;
    display: table;
}
section.stores .storeloader .holder .storecontent {
    display: table-cell;
    padding: 0 10px;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize; …
Run Code Online (Sandbox Code Playgroud)

html css firefox

0
推荐指数
1
解决办法
1852
查看次数

标签 统计

css ×1

firefox ×1

html ×1

mongodb ×1

mongodb-query ×1