- Code:
$(function () {
$(".post .post-entry img").each(function () {
400 <= $(this).width() && $(this).addClass("fullwith")
});
});
- Code:
img.fullwith{width:100%;}
Nguồn: http://www.devs.cf/t525-hoi-ap-cho-img-width100-voi-nhung-anh-to-hon-400px
$(function () {
$(".post .post-entry img").each(function () {
400 <= $(this).width() && $(this).addClass("fullwith")
});
});
img.fullwith{width:100%;}
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|