Enlarging images with CSS (or jQuery) without moving everything else on the page

前端 未结 6 1866
暖寄归人
暖寄归人 2021-01-05 19:28

I have a dynamically generated set of images (with a comment near every image). I want to display every image with max-width and max-height of 48 px, but when the user is ho

6条回答
  •  粉色の甜心
    2021-01-05 20:21

    You could try something like setting the position of .commentpic to absolute.

    You can see an example here: http://jsfiddle.net/HkPCp/3/

    I think this is the behavior you want, right?

    EDIT : I updated the jsFiddle so that it won't move the other elements.

    Is this the correct behavior?

提交回复
热议问题