开发者

In Eric Martin's Simplemodal jQuery plugin, is possible to adjust CSS on the fly?

开发者 https://www.devze.com 2022-12-24 03:44 出处:网络
I would like to adjust the height of the simple-container to match changing depth requirements passed on data returned from the server using $.ajax.

I would like to adjust the height of the simple-container to match changing depth requirements passed on data returned from the server using $.ajax.

It seems that once the modal is fired, all CSS changes on the fly, e.g. $('#someid').c开发者_运维知识库ss('height','500px')

Anyway to override the set CSS?

Thanks


Sorry, this had been asked and answered in a different form. Here my code and now I have a dynamically resizing modal.

Added:

$('#simplemodal-container').css('height', 'auto');

as in:

$('#mycontainer').modal({onShow: function (dialog) {
             $('#simplemodal-container').css('height', 'auto');
        }});
0

精彩评论

暂无评论...
验证码 换一张
取 消