@charset "utf-8";


/* 图片上传预览 */

.upload_button {
    display: inline-block;
    height: 42px;
    line-height: 42px;
    width: 210px;
    text-align: center;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.upload_button input[rel=button] {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 6;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

[rel=preview] {
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    width: 542px;
}

[rel=preview] .item {
    height: 180px;
    width: 180px;
    float: left;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

[rel=preview] .item img {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    /* IE 9 */
    -moz-transform: translate(-50%, -50%);
    /* Firefox */
    -webkit-transform: translate(-50%, -50%);
    /* Safari 和 Chrome */
    -o-transform: translate(-50%, -50%);
    /* Opera */
    transform: translate(-50%, -50%);
}

[rel=preview] .item img {
    max-width: 100%;
    max-height: 100%;
    z-index: 5;
}

[rel=preview] .item em {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .4);
    font-size: 18px;
    width: 24px;
    height: 26px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}