Gewusst wie: hinzufügen von CSS-iframe-Inhalte

Warum dies nicht funktioniert Browsern außer dem IE?

var head = jQuery("#frame1").contents().find("head");
var css = '<style type="text/css">' +
      '.container{background:blue}; ' +
      '</style>';
jQuery(head).append(css);     
});
  • Was ist die Quelle der iframe? Ist es auf der gleichen domain?
InformationsquelleAutor Anoops | 2014-12-16
Schreibe einen Kommentar