display images based on browser width

后端 未结 3 465
生来不讨喜
生来不讨喜 2021-01-29 01:35

I have bunch of images that I would like to display using jquery. I have divs and I used jquery to populate the divs based on some node_id criteria. For example, if the node_id

3条回答
  •  长情又很酷
    2021-01-29 02:28

    In my script can do this:

    $('.team').css({ "width": $(window).width(), "height": "auto" });

提交回复
热议问题