Ir para conteúdo
Fórum Script Brasil

mikeaguiar

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre mikeaguiar

mikeaguiar's Achievements

0

Reputação

  1. <script src="responsive-iframes.js"> function adjustIframes() { $('iframe').each(function(){ var $this = $(this), proportion = $this.data( 'proportion' ), w = $this.attr('width'), actual_w = $this.width(); if ( ! proportion ) { proportion = $this.attr('height') / w; $this.data( 'proportion', proportion ); } if ( actual_w != w ) { $this.css( 'height', Math.round( actual_w * proportion ) + 'px' ); } }); } $(window).on('resize load',adjustIframes);// JavaScript Document</script>
×
×
  • Criar Novo...