Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/10/2012, 18:55
Avatar de Nemutagk
Nemutagk
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: México
Mensajes: 2.633
Antigüedad: 20 años, 1 mes
Puntos: 406
Respuesta: Problema con html dentro de un php con iframe

Con css puedes hacerlo muy sencillo, metes el iframe dentro de un div y en las propiedades del div ocultas el contenido (overflow: hidden), en el iframe le das un margin-top negativo, aprox unos -200px y ya te queda, eso si, deberás poner en el iframe un overflow: inherit para que no aparezcan las barras de scroll...

Algo así...

Código HTML:
Ver original
  1. <!DOCTYPE HTML>
  2. <html lang="en-US">
  3.     <meta charset="UTF-8">
  4.     <title></title>
  5.     <style type="text/css">
  6.         #div-frame {
  7.             overflow: hidden;
  8.         }
  9.  
  10.         #div-frame iframe {
  11.             width: 800px;
  12.             height: 835px;
  13.             margin-top: -200px;
  14.             overflow: inherit;
  15.         };
  16.     </style>
  17. </head>
  18.     <div id="div-frame">
  19.         <iframe src="http://www.ar.avon.com/PRSuite/eBrochure.page?index=2&cmpgnYrNr=201218" frameborder="0"></iframe>
  20.     </div>
  21. </body>
  22. </html>

Por ultimo, se me olvidaba comentar, esto no tiene nada que ver con PHP!, publica tus post en el foro correcto!
__________________
Listo?, tendría que tener 60 puntos menos de IQ para considerarme listo!!!
-- Sheldon Cooper
http://twitter.com/nemutagk
PD: No contestaré temas vía mensaje personal =)