Resize a set of HTML element.

I have HTML code similar to
I want to resize the div with all its contents to arbitrary size. For example, I could use JavaScript to get the div width and then resize all elements accordingly, but what's the simplest way to do this? I can use jQuery, I tried: $("#resizeThis > *").css('width', '64px').css('height', '64px'); but it only shrinked the #resizeThis and not its children. And what can I do about backgrounds, text, etc? I want to do this so that I could generate thumbnails (usually 25% of the original size).
Don't use your browser to resize images. It makes bad pictures. Generate thumbnails on server side. (e.g: with imagemagick)

以上就是Resize a set of HTML element.的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准