.image-clip { display: inline-block; vertical-align: middle; overflow: hidden; position: relative; } .image-clip div:nth-child(2) { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } .image-clip img:not([src]) { position: absolute; top: 0; left: 0; } /* [[Category:在模板名字空间下的CSS页面]] */