IE element width to min-content

前端 未结 3 1841
抹茶落季
抹茶落季 2020-12-31 05:14

I have the following container holding both an image and a text element.

3条回答
  •  不知归路
    2020-12-31 05:52

    a bit of jquery?

    $(function() {
        $('.container').width($('img#image').width());
    });
    

    FIDDLE

提交回复
热议问题