开发者

Move and scale image in html and javascript

I have an image tag, size 100x75. 开发者_如何学编程The image it is holding is scaled down from 150x112. I don't want the image scaled down, that much, but I still want the container img tag to be 100x75, thus cliipping off some of the outer parts of the image. How would I do this?


css:
.wrapper {
    width    : 100px;
    height   : 75px;
    overflow : hidden;
}

html:
<div class="wrapper">
    <img src="...">
</div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜