Foros del Web » Creando para Internet » CSS »

Problema con IE y las CSS

Estas en el tema de Problema con IE y las CSS en el foro de CSS en Foros del Web. Hola buenas chicos!!! Estoy teniendo problemas con el internet explores pero con los demás navegadores todo funciona correctamente. es que algunas css no me funciona ...
  #1 (permalink)  
Antiguo 09/08/2011, 18:01
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Problema con IE y las CSS

Hola buenas chicos!!!

Estoy teniendo problemas con el internet explores pero con los demás navegadores todo funciona correctamente.

es que algunas css no me funciona específicamente el problema esta con unos margen flotante de algunas div y no se como puedo solucionar eso porque por ejemplo cuando intento hacer modificaciones para solucionar el problema la pagina se me pone loca y se me desarma completamente el orden de los objetos en el diseño.

Código HTML:
Ver original
  1. body{
  2.     background:
  3.     radial-gradient(black 15%, transparent 16%) 0 0,radial-gradient(black 15%, transparent 16%) 8px 8px, radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px;
  4.     radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
  5.     background-color:#282828;
  6.     margin-top:40px;
  7.     }
  8.    
  9.  #contenedor {
  10.                 background-image:url(imagenes/fondo.jpg);
  11.                 background-repeat:no-repeat;
  12.                 display:block;
  13.                 width: 960px;
  14.                 height: 640px;
  15.                 text-align: left;
  16.                 margin: 0 auto;
  17.                 border: 2px solid #666;
  18.                -moz-border-radius: 8px;
  19.                -webkit-border-radius: 8px;
  20.            
  21.             }
  22.        
  23.             #menu1 {
  24.                 font-family:Verdana, Geneva, sans-serif;
  25.                 font-size:14px;
  26.                 color: #333;
  27.                 width: 160px;
  28.                 height: 240px;
  29.                 background: #FFF;
  30.                 float: left;
  31.                 margin:25px;
  32.                 margin-top: 150px;
  33.             }
  34.            
  35.             #contenido, #slider  {
  36.                 width: 540px; /*640px*/
  37.                 height: 350px;
  38.                 float:right;
  39.                 background: #333;
  40.                 padding:2px 20px 20px 2px;
  41.                 margin: 50px;
  42.                 margin-top:90px;
  43.                 border: 0px solid #666;
  44.                -moz-border-radius: 10px;
  45.                -webkit-border-radius: 10px;
  46.             }
  47.             #pie {
  48.                 font-family:Verdana, Geneva, sans-serif;
  49.                 font-size:10px;
  50.                 text-align: right;
  51.                 width:960px;
  52.                 height:25px;
  53.                 margin-top:620px;
  54.                 margin-left:0px;
  55.                 margin-right:90px;
  56.             }
  57.             #fecha,#idioma,#menu2{
  58.                 font-family:Verdana, Geneva, sans-serif;
  59.                 font-size:12px;
  60.                 color:#333;
  61.                 width:160px;
  62.                 height:25px;
  63.                 float:right;
  64.                 margin-top:1px;
  65.                 margin-right:20px;
  66.                 }
  67.             #social{
  68.                 width:110px;
  69.                 height:25px;
  70.                 margin-top:100px;
  71.                 float:right;
  72.                 margin-left:0px;
  73.                 margin-right:10px;
  74.                 padding:4px;
  75.                 }  
  76. h4 {
  77.     color: #666;
  78. }
  79. <script src="scripts/jquery-1.6.min.js" type="text/javascript"></script>
  80. <script src="scripts/jquery.cycle.all.js" type="text/javascript"></script>
  81. <style type="text/css">
  82. /* BeginOAWidget_Instance_2559022: #slideshow */
  83.  
  84.             #slideshow {  
  85.                 padding: 5px;
  86.                 margin:0;  
  87.             }
  88.             #slideshow-caption{
  89.                 padding:0;
  90.                 margin:0;
  91.             }
  92.  
  93.             #slideshow img, #slideshow div {  
  94.                 padding: 5px;
  95.                 background-color: transparent;
  96.                 -webkit-border-radius: 10px;
  97.                 -moz-border-radius: 10px;
  98.                 border-radius: 10px;
  99.                 margin: 0;
  100.             }
  101.        
  102. /* EndOAWidget_Instance_2559022 */
  103. a:link {
  104.     text-decoration: none;
  105.     color: #333;
  106. }
  107. a:visited {
  108.     text-decoration: none;
  109.     color: #666;
  110. }
  111. a:hover {
  112.     text-decoration: none;
  113.     color: #999;
  114. }
  115. a:active {
  116.     text-decoration: none;
  117.     color: #333;
  118. }
  #2 (permalink)  
Antiguo 09/08/2011, 18:02
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

estos son los problemas que me sale y cuando intento hacer algo se me va todo el diseño de la web y el problema solo lo tengo con el internet explorer

linea 58
y el error que me sale error de margen flotante doble.
Problema de ampliación de cuadros.

Linea 40
problema de ampliación de cuadro.

Linea 52
problema de ampliación de cuadro.

Linea 64
problema de caida de un elemento flotante
  #3 (permalink)  
Antiguo 10/08/2011, 00:24
Avatar de Batan  
Fecha de Ingreso: septiembre-2010
Ubicación: Madrid
Mensajes: 408
Antigüedad: 13 años, 7 meses
Puntos: 63
Respuesta: Problema con IE y las CSS

Hola, muy buenas.

Pon el HTML de tu página.
  #4 (permalink)  
Antiguo 10/08/2011, 02:44
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

aqui esta el html de mi web

Código HTML:
Ver original
  1. <div id="contenedor">
  2. <div id="menu2">
  3. <a href="javascript:doGTranslate('es|es')" title="español">
  4. <img src="botones/boton2.jpg" width="50" height="25" alt="español" />
  5. </a>
  6.  <a href="javascript:doGTranslate('es|en')" title="english">
  7. <img src="botones/boton1.jpg" width="50" height="25" alt="ingles" />
  8. </a>
  9. </div>
  10. <div id="menu3"><a href="contacto.html">Contacto</a> <a href="mapa_web.html">| Mapa web</a></div>
  11.   <div id="fecha"><div id="fecha"><script language="JavaScript" type="text/javascript">  
  12. <!--  
  13.  mydate = new Date();  
  14.  myday = mydate.getDay();  
  15.  mymonth = mydate.getMonth();  
  16.  myweekday= mydate.getDate();  
  17.  weekday= myweekday;  
  18.  if(myday == 0)  
  19.  day = " Domingo, "  
  20.  else if(myday == 1)  
  21.  day = " Lunes, "  
  22.  else if(myday == 2)  
  23.  day = " Martes, "  
  24.  else if(myday == 3)  
  25.  day = " Miércoles, "  
  26.  else if(myday == 4)  
  27.  day = " Jueves, "  
  28.  else if(myday == 5)  
  29.  day = " Viernes, "  
  30.  else if(myday == 6)  
  31.  day = " Sábado, "  
  32.  if(mymonth == 0)  
  33.  month = "Enero "  
  34.  else if(mymonth ==1)  
  35.  month = "Febrero "  
  36.  else if(mymonth ==2)  
  37.  month = "Marzo "  
  38.  else if(mymonth ==3)  
  39.  month = "Abril "  
  40.  else if(mymonth ==4)  
  41.  month = "Mayo "  
  42.  else if(mymonth ==5)  
  43.  month = "Junio "  
  44.  else if(mymonth ==6)  
  45.  month = "Julio "  
  46.  else if(mymonth ==7)  
  47.  month = "Agosto "  
  48.  else if(mymonth ==8)  
  49.  month = "Setiembre "  
  50.  else if(mymonth ==9)  
  51.  month = "Octubre "  
  52.  else if(mymonth ==10)  
  53.  month = "Noviembre "  
  54.  else if(mymonth ==11)  
  55.  month = "Diciembre "  
  56. document.write("<font face=verdana, size=2>"+ day);  
  57. document.write(myweekday+" de "+month+ "</font>");  
  58. // -</script></div>
  59.  </div>  
  60.  <div id="menu1">
  61.    <hr />
  62.  <p><a href="index.html">Inicio</a></p>
  63. <p><a href="sobre_nosotros.html">Sobre nosotros</a></p>
  64.     <p><a href="portafolio.html">Portafolio</a></p>
  65.    <p><a rel="clearbox[gallery=Gallery,,width=960,,height=760]" href="http://novtiz.es/inicio.html">Servicio tecnico </a></p>
  66.    <p><a href="contacto.html">Contacto    </a></p>
  67.    <hr />
  68.    <p><a href="http://www.facebook.com/" target="_blank"><img src="imagenes/facebook.png" alt="facebook" width="22" height="22" border="0" /></a> <a href="http://twitter.com/" target="_blank"><img src="imagenes/twitter.png" alt="twiter" width="22" height="22" border="0" /></a> <img src="imagenes/skype.png" width="22" height="22" alt="skype" /> <a href="https://mail.google.com/mail" target="_blank"><img src="imagenes/gmail.png" alt="gmail" width="22" height="22" border="0" /></a></p>
  69.    <p>&nbsp;</p>
  70.    <p><img src="imagenes/promocion.jpg" width="190" height="113" alt="promocion" /></p>
  71.    <p>&nbsp;</p>
  72.    <p>&nbsp;</p>
  73.  </div>
  74.  <div id="contenido">
  75.    <script type="text/javascript">
  76. // BeginOAWidget_Instance_2559022: #slideshow
  77.  
  78.             slideshowAddCaption=false;
  79. $(document).ready(function() {
  80.     $('#slideshow').cycle({
  81.         after:          slideshowOnCycleAfter, //the function that is triggered after each transition
  82.         autostop:           false,     // true to end slideshow after X transitions (where X == slide count)
  83.         fx:             'fade,',// name of transition effect
  84.         pause:          true,     // true to enable pause on hover
  85.         randomizeEffects:   true,  // valid when multiple effects are used; true to make the effect sequence random
  86.         speed:          1000,  // speed of the transition (any valid fx speed value)
  87.         sync:           false,     // true if in/out transitions should occur simultaneously
  88.         timeout:        3000,  // milliseconds between slide transitions (0 to disable auto advance)
  89.         fit:            true,
  90.         height:        '350px',
  91.         width:         '550px'   // container width (if the 'fit' option is true, the slides will be set to this width as well)
  92.     });
  93. });
  94. function slideshowOnCycleAfter() {
  95.     if (slideshowAddCaption==true){
  96.             $('#slideshow-caption').html(this.title);
  97.     }
  98. }
  99.        
  100. // EndOAWidget_Instance_2559022
  101.    </script>
  102.    <div id="slideshow">
  103.      <!--All elements inside this will become slides-->
  104.       <img src="imagenes/marketing.jpg" width="550" height="417"  /> <img src="imagenes/tienda.jpg" width="475" height="491" /> <img src="imagenes/corporativa.jpg" width="480" height="320"  />
  105.     </div>
  106.     <!--It is safe to delete this if captions are disabled-->
  107.     <div id="slideshow-caption"></div>
  108.   </div>
  109. <div id="pie">
  110.   <h4>Oliver  Arthur Web Site&reg;2011 Todos los derechos reservados </h4>
  111. </div>
  112. </div>
  113. <script type="text/javascript">
  114. var _gaq = _gaq || [];
  115.   _gaq.push(['_setAccount', '']);
  116.   _gaq.push(['_trackPageview']);
  117.  
  118.   (function() {
  119.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  120.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  121.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  122.   })();
  123.     </script>
  124. </body>
  125. </html>
  #5 (permalink)  
Antiguo 10/08/2011, 03:35
Avatar de Batan  
Fecha de Ingreso: septiembre-2010
Ubicación: Madrid
Mensajes: 408
Antigüedad: 13 años, 7 meses
Puntos: 63
Respuesta: Problema con IE y las CSS

Hola, he visto tu codigo XHTML en IE 7, 8 y 9. Pero el único problema que veo es que el contenedor de tu slider tiene un height fijo y la de la imagen de tu slidershow es mas mayor

Cita:
#contenido, #slider {
width: 540px; /*640px*/
height: 350px;}
Cita:
<div id="slideshow">
<!--All elements inside this will become slides-->
<img src="http://www.google.es/images/srpr/logo3w.png" width="550" height="417" /> <img src="http://www.google.es/images/srpr/logo3w.png" width="475" height="491" /> <img src="http://www.google.es/images/srpr/logo3w.png" width="480" height="320" />
</div>

Nose que quieres hacer con la segunda imagen(esa si queda descentrada).


Y respecto a los errores

Cita:
Iniciado por oliverarthurnardi Ver Mensaje
estos son los problemas que me sale y cuando intento hacer algo se me va todo el diseño de la web y el problema solo lo tengo con el internet explorer

linea 58
y el error que me sale error de margen flotante doble.
Problema de ampliación de cuadros.
...
Date cuenta que nosotros no podemos saber que lineas son por que usamos un editor diferente o por usar un código distinto, deberias especificar cual son esas lineas.

Saludos
  #6 (permalink)  
Antiguo 10/08/2011, 03:54
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

Hola buenas !!

Mira los errores me salen en la linea 11,linea 12, linea 61,linea 75 y en la linea 110

Un saludos
  #7 (permalink)  
Antiguo 10/08/2011, 04:00
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

Código HTML:
Ver original
  1. <div id="contenedor">
  2. <div id="menu2">
  3. <a href="javascript:doGTranslate('es|es')" title="español">
  4. <img src="botones/boton2.jpg" width="50" height="25" alt="español" />
  5. </a>
  6.  <a href="javascript:doGTranslate('es|en')" title="english">
  7. <img src="botones/boton1.jpg" width="50" height="25" alt="ingles" />
  8. </a>
  9. </div>
  10. [B]<div id="menu3"><a href="contacto.html">Contacto</a> <a href="mapa_web.html">| Mapa web</a></div>
  11.   <div id="fecha"><div id="fecha"><script language="JavaScript" type="text/javascript">[/B]  
  12. <!--  
  13.  mydate = new Date();  
  14.  myday = mydate.getDay();  
  15.  mymonth = mydate.getMonth();  
  16.  myweekday= mydate.getDate();  
  17.  weekday= myweekday;  
  18.  if(myday == 0)  
  19.  day = " Domingo, "  
  20.  else if(myday == 1)  
  21.  day = " Lunes, "  
  22.  else if(myday == 2)  
  23.  day = " Martes, "  
  24.  else if(myday == 3)  
  25.  day = " Miércoles, "  
  26.  else if(myday == 4)  
  27.  day = " Jueves, "  
  28.  else if(myday == 5)  
  29.  day = " Viernes, "  
  30.  else if(myday == 6)  
  31.  day = " Sábado, "  
  32.  if(mymonth == 0)  
  33.  month = "Enero "  
  34.  else if(mymonth ==1)  
  35.  month = "Febrero "  
  36.  else if(mymonth ==2)  
  37.  month = "Marzo "  
  38.  else if(mymonth ==3)  
  39.  month = "Abril "  
  40.  else if(mymonth ==4)  
  41.  month = "Mayo "  
  42.  else if(mymonth ==5)  
  43.  month = "Junio "  
  44.  else if(mymonth ==6)  
  45.  month = "Julio "  
  46.  else if(mymonth ==7)  
  47.  month = "Agosto "  
  48.  else if(mymonth ==8)  
  49.  month = "Setiembre "  
  50.  else if(mymonth ==9)  
  51.  month = "Octubre "  
  52.  else if(mymonth ==10)  
  53.  month = "Noviembre "  
  54.  else if(mymonth ==11)  
  55.  month = "Diciembre "  
  56. document.write("<font face=verdana, size=2>"+ day);  
  57. document.write(myweekday+" de "+month+ "</font>");  
  58. // -</script></div>
  59.  </div>  
  60.  [B]<div id="menu1">[/B]
  61.    <hr />
  62.  <p><a href="index.html">Inicio</a></p>
  63. <p><a href="sobre_nosotros.html">Sobre nosotros</a></p>
  64.     <p><a href="portafolio.html">Portafolio</a></p>
  65.    <p><a rel="clearbox[gallery=Gallery,,width=960,,height=760]" href="http://novtiz.es/inicio.html">Servicio tecnico </a></p>
  66.    <p><a href="contacto.html">Contacto    </a></p>
  67.    <hr />
  68.    <p><a href="http://www.facebook.com/" target="_blank"><img src="imagenes/facebook.png" alt="facebook" width="22" height="22" border="0" /></a> <a href="http://twitter.com/" target="_blank"><img src="imagenes/twitter.png" alt="twiter" width="22" height="22" border="0" /></a> <img src="imagenes/skype.png" width="22" height="22" alt="skype" /> <a href="https://mail.google.com/mail" target="_blank"><img src="imagenes/gmail.png" alt="gmail" width="22" height="22" border="0" /></a></p>
  69.    <p>&nbsp;</p>
  70.    <p><img src="imagenes/promocion.jpg" width="190" height="113" alt="promocion" /></p>
  71.    <p>&nbsp;</p>
  72.    <p>&nbsp;</p>
  73.  </div>
  74. [B] <div id="contenido">[/B]
  75.    <script type="text/javascript">
  76. // BeginOAWidget_Instance_2559022: #slideshow
  77.  
  78.            slideshowAddCaption=false;
  79. $(document).ready(function() {
  80.    $('#slideshow').cycle({
  81.        after:          slideshowOnCycleAfter, //the function that is triggered after each transition
  82.        autostop:           false,     // true to end slideshow after X transitions (where X == slide count)
  83.        fx:             'fade,',// name of transition effect
  84.        pause:          true,     // true to enable pause on hover
  85.        randomizeEffects:   true,  // valid when multiple effects are used; true to make the effect sequence random
  86.        speed:          1000,  // speed of the transition (any valid fx speed value)
  87.        sync:           false,     // true if in/out transitions should occur simultaneously
  88.        timeout:        3000,  // milliseconds between slide transitions (0 to disable auto advance)
  89.        fit:            true,
  90.        height:        '350px',
  91.        width:         '550px'   // container width (if the 'fit' option is true, the slides will be set to this width as well)
  92.    });
  93. });
  94. function slideshowOnCycleAfter() {
  95.    if (slideshowAddCaption==true){
  96.            $('#slideshow-caption').html(this.title);
  97.    }
  98. }
  99.        
  100. // EndOAWidget_Instance_2559022
  101.    </script>
  102.    <div id="slideshow">
  103.      <!--All elements inside this will become slides-->
  104.       <img src="imagenes/marketing.jpg" width="550" height="417"  /> <img src="imagenes/tienda.jpg" width="475" height="491" /> <img src="imagenes/corporativa.jpg" width="480" height="320"  />
  105.     </div>
  106.     <!--It is safe to delete this if captions are disabled-->
  107.     <div id="slideshow-caption"></div>
  108.   </div>
  109. [B]<div id="pie">[/B]
  110.   <h4>Oliver  Arthur Web Site&reg;2011 Todos los derechos reservados </h4>
  111. </div>
  112. </div>
  113. <script type="text/javascript">
  114. var _gaq = _gaq || [];
  115.   _gaq.push(['_setAccount', '']);
  116.   _gaq.push(['_trackPageview']);
  117.  
  118.   (function() {
  119.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  120.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  121.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  122.   })();
  123.     </script>
  124. </body>
  125. </html>

te lo he marcado en negrita donde me salen los erros
  #8 (permalink)  
Antiguo 10/08/2011, 04:01
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

la linea 11,linea 12, linea 61,linea 75 y en la linea 110 esos son los errores
  #9 (permalink)  
Antiguo 10/08/2011, 05:47
Avatar de Batan  
Fecha de Ingreso: septiembre-2010
Ubicación: Madrid
Mensajes: 408
Antigüedad: 13 años, 7 meses
Puntos: 63
Respuesta: Problema con IE y las CSS

Bueno en la line 12 tienes dos DIV llamando al mismo identificador ('fecha') y aunque este no sea la soluciona tu problema... creo que son las medidas que tienes de los contenedores y las imagenes.
Pero como ya te dije antes yo lo bien en todos los exploradores a menos que el problema este en las imagenes, que obviamente yo no las tengo.

Saludos
  #10 (permalink)  
Antiguo 10/08/2011, 05:55
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

Hola buenas Batan!

el problema de la linea 12 ya lo tengo resuelto

pero los demás me siguen dando problemas y bueno también las fotos les modifique el tamaño e igual me sigue dando problema

Aun me sigo con el mismo problema de que no se me carga la web en el IE pero en los demás si
  #11 (permalink)  
Antiguo 10/08/2011, 06:12
Avatar de Batan  
Fecha de Ingreso: septiembre-2010
Ubicación: Madrid
Mensajes: 408
Antigüedad: 13 años, 7 meses
Puntos: 63
Respuesta: Problema con IE y las CSS

En explorer 7 se me ve asi, te hice una captura.


Nose en que esta fallando.
  #12 (permalink)  
Antiguo 10/08/2011, 06:21
 
Fecha de Ingreso: noviembre-2010
Ubicación: aun no se donde vivir
Mensajes: 112
Antigüedad: 13 años, 5 meses
Puntos: 3
Respuesta: Problema con IE y las CSS

mira aqui te paso la url de la pagina web

http://www.oliverarthurnardi.com

es que la abro con otro navegador que no sea el explorer y funciona perfectamente

y la descripción de los errores que me dicen el dreamweaver cuando le doy ver compatibilidad con los navegadores son:

Error de margen flotante doble
Problemas de ampliación de cuadros
Problemas de caída de un elemento flotante

Un saludo

Etiquetas: contenido, fondo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:29.