Ver Mensaje Individual
  #9 (permalink)  
Antiguo 24/09/2009, 14:56
Avatar de loncho_rojas
loncho_rojas
Colaborador
 
Fecha de Ingreso: octubre-2008
Ubicación: En el mejor lugar del mundo
Mensajes: 2.704
Antigüedad: 15 años, 6 meses
Puntos: 175
Respuesta: Problema de visualización con explorer

ejemplo:, seguro es eso lo que te pasa...

supongando, que tienes tu pagina index asi:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>

<? include ('menu_principal.php');?>

<? include ('contenido.php');?>


</body>
</html> 
Ahora veamos tu archivo menu_principal.php:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
[B]Boton 1 | Boton 2 | etc. etc....[/B]
</body>
</html> 
Código HTML:
y ahora tu archivo de contenido.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
[B]aca va el contenido[/B]
</body>
</html> 
imagino que ese es tu caso..

mira.. cuando haces el include, o como lo hagas, te das cuenta que ya el index tiene una estructura html, no importa si su extension es php u otra.. tambien te das cuenta que tu archivo menu_principal.php, tiene la misma estructura html..

cuando le haces el include a tu index, todo, y absolutamente todo el contenido del archivo pasa a ser interpretado como parte de la estructura llamada..

es decir, que en ves de :

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>

[COLOR="Red"]<? include ('menu_principal.php');?>[/COLOR]

<? include ('contenido.php');?>


</body>
</html> 
Tendras:


Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>Documento sin t&iacute;tulo</title>
 </head>

 <body>



          [COLOR="Red"]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
             <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>Documento sin t&iacute;tulo</title>
            </head>

            <body>
         [B]Boton 1 | Boton 2 | etc. etc....[/B]
           </body>
       </html>[/COLOR]


</body>
</html> 
..

ves, se vuelve a repetir..
por ello en tus includes, no debes probablemente incluir esas etiquetas.. no importa que no se vean bien, al ser llamadas por el index, deberan armarse correctamente.. aunque me parece poco ortodoxo armar las web por includes.. poco practico, y problematico.. ya te daras cuenta con el tiempo..