.clearall{
    clear: both;
    overflow: hidden;
    font-size: 0;
}
div.p {
    padding: 0;
    margin: 0;
    position: relative;
    clear: both;
}
div.p a.text{
    display: inline-block;
    width: 100%;
}

.affTpllay {
    transition: all .6s;
    -webkit-transition: all .6s;
    display: inline;
    position: absolute;
    font-size: 0;
    overflow: hidden;
    max-width: 150px;
    z-index: 10;
}

.affTpllay img {
    max-width: 150px;
    max-height: 230px;
    width: 150px;
}

.affTpllay.t {
    left: 0;
    top: 0;
    right: 0;
    display: none;
    position: fixed;
    max-width: 100vw;
    width: 100vw;
}

.affTpllay.t img {
    max-width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: fill;
}

.affTpllay.b {
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    position: fixed;
    max-width: 100vw;
    width: 100vw;
}

.affTpllay.b img {
    max-width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: fill;
}

.affTpllay.c {
    left: 50%;
    top: 50vh;
}

.affTpllay.c {
    transform: translate(-50%, -50%);
}

.affTpllay.t {
    left: 0;
    top: 0;
    right: 0;
}

.affTpllay.b {
    left: 0;
    bottom: 0;
    right: 0;
}

.affTpllay.lt {
    left: 0;
    top: 0;
}

.affTpllay.rt {
    right: 0;
    top: 0;
}

.affTpllay.l {
    left: 0;
    top: 50vh;
    transform: translate(0, -50%);
}

.affTpllay.r {
    right: 0;
    top: 50vh;
    transform: translate(0, -50%);
}

.affTpllay.lb {
    left: 0;
    top: 100vh;
    transform: translate(0, -100%);
}

.affTpllay.rb {
    right: 0;
    top: 100vh;
    transform: translate(0, -100%);
}

@media screen and (max-width: 500px) {
    .affTpllay {
        max-width: 65px;
    }

    .affTpllay img {
        max-height: 110px;
        width: 100%;
    }

    .affTpllay.t {
        display: block;
    }

    .affTpllay.t img {
        max-height: 60px;
    }

    .affTpllay.b {
        display: block;
    }

    .affTpllay.b img {
        max-height: 60px;
    }

    .affTpllay.lt {
        top: 60px;
    }

    .affTpllay.rt {
        top: 60px;
    }

    .affTpllay.lb {
        top: calc(100vh - 60px);
    }

    .affTpllay.rb {
        top: calc(100vh - 60px);
    }
}

/* 格式
<div class="jiugongad">
    <div class="p">
		content
	</div>
</div>
*/
.jiugongad {
	width: 100%;
	height: 100%;
	display: grid;
	/*行间距*/
	grid-row-gap: 4px; /*12px*/
	/*列间距*/
	grid-column-gap: 4px;/*12px*/
	/*每3行有2个行间距，所以每个格子的宽高都要减去(12*2) / 3 */
	grid-template-columns: repeat(3, calc(33.33% - 2px));
	/*grid-template-rows: repeat(3, calc(33.33% - 2px));*/
	overflow: hidden;
	background-color: #fff;
}
.jiugongad .p{
	margin-bottom:4px;
}
.jiugongad .p img{
	width:100%;
	height:100%;
	object-fit:contain;
}
