之后jQuery的阿贾克斯负荷失去CSS [英] losing css after jquery ajax load
本文介绍了之后jQuery的阿贾克斯负荷失去CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家不知道怎么一个Ajax请求,$ .load后修复的CSS问题?例如,如果我想从一个网页加载只是一个DIV,我的Ajax请求后用:
does everybody know how to fix the problem of css after an Ajax request with $.load? For example, If I want to load just a DIV from a webpage, after my Ajax request with:
$('container').load('path_to_div #div_id');
我失去了所有的一切与股利相关的CSS和脚本
I lose all the css and scripts that was associated with that div
任何想法请
推荐答案
我有一种错误的解决办法是:
I had that error the solution was :
$('#contentPagina)。载荷(nombrePagina,函数(){
$('#contentPagina)触发('创造')。
});
$('#contentPagina').load(nombrePagina,function(){
$('#contentPagina').trigger('create');
});
这篇关于之后jQuery的阿贾克斯负荷失去CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文