【发布时间】:2010-12-01 07:39:20
【问题描述】:
<div style="width:200px;height:200px;overflow:hidden;">
<img src=".." this is a 300x500 image. >
</div>
你怎样才能使它产生一个 200x200 的图像(DIV 覆盖图像的其余部分),但图像居中?
最简单的方法是什么?一些 JQuery 插件?你会怎么做?
编辑:我希望它垂直和水平对齐。
【问题讨论】:
标签: javascript jquery html css templates