Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/10/2011, 10:01
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Fondo capa desaparece al meter imagen de fondo en capa contenedor (en IE)

A mi tu código no me genera el error


por las dudas este es el html
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10. #contenido{
  11. width: 200px;
  12. height: 200px;
  13. background: #ffbf63;
  14. border: 1px solid #d17b00;
  15. padding: 5px;
  16. border-radius: 10px;
  17. -moz-border-radius: 10px;
  18. -webkit-border-radius: 10px;
  19. behavior: url(PIE.htc);
  20. margin: 0 auto;
  21. }
  22. #contenedor{
  23. width: 300px;
  24. height: 300px;
  25. background-image: url(liberatumovil.png); /* al añadir esto surge el problema*/
  26. }
  27.  
  28. /*]]>*/
  29. </head>
  30.  
  31.  
  32. <div id="contenedor">
  33.  <div id="contenido">
  34.  <h1>prueba</h1>
  35.  </div>
  36.  </div>
  37.  
  38.  </body>
  39. </html>


Asegurate que tu pie.htc esté recibiendo el mime correcto, podés hacerlo con .htaccess

Código Apache:
Ver original
  1. AddType text/x-component htc

o usando la script pie.php
Testeado en Chrome , FF, IE 9

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.