Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想调整简单容器的高度,以匹配使用 $.ajax 从服务器返回的数据传递的不断变化的深度要求。
似乎一旦触发模式,所有CSS都会即时更改,例如 $('#someid').css('height','500px')
无论如何要覆盖设置的CSS?
谢谢
抱歉,已以不同的形式提出并回答了此问题。这是我的代码,现在我有一个动态调整大小的模式。
添加:
$('#simplemodal-container').css('height', 'auto');
如:
$('#mycontainer').modal({onShow: function (dialog) { $('#simplemodal-container').css('height', 'auto'); }});