CSS - css problema explorer

 
Vista:

css problema explorer

Publicado por Chaval2999 (1 intervención) el 01/12/2014 09:27:19
En firefox , chrome y internet explorer 11 se ve perfecto.
Pero en safari no se ve bien ni en internet explorer 9 y anteriores.
El problema esta solo en el id #nav en el display:flex seguramente y es que nose como hacer para que en esos navegadores se vea bien. Gracias por cualquier tipo de ayuda.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
<style type="text/css">
 
body {
margin-left:20px;
	margin-top: 50px;
	padding: 0;
	text-align: justify;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	color: black;
	width:100%;
}
/*EN ESTE ID ESTA EL PROBLEMA
#nav {
    display:flex;
    width:1000px;
    margin:0 auto;
    padding:0;
    background:#335599 url(../imagenes/bg.png) repeat-x 0 -110px;

    border-radius:10px; /*some css3*/
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    box-shadow:0 2px 2px rgba(0,0,0, .5);
    -moz-box-shadow:0 2px 2px rgba(0,0,0, .5);
    -webkit-box-shadow:0 2px 2px rgba(0,0,0, .5);
}
#nav li {
    margin:10px;
    float:left;
    position:relative;
    list-style:none;
}
#nav a {
    font-weight:bold;
    color:#e7e5e5;
    text-decoration:none;
    display:block;
    padding:8px 20px;

    border-radius:10px; /*some css3*/
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    text-shadow:0 2px 2px rgba(0,0,0, .7);
}

/* selected menu element */
#nav .current a, #nav li:hover > a {
    background:#7788aa url(../imagenes/bg.png) repeat-x 0 -20px;
    color:#000;
    border-top:1px solid #f8f8f8;

    box-shadow:0 2px 2px rgba(0,0,0, .7); /*some css3*/
    -moz-box-shadow:0 2px 2px rgba(0,0,0, .7);
    -webkit-box-shadow:0 2px 2px rgba(0,0,0, .7);
    text-shadow:0 2px 2px rgba(255,255,255, 0.7);
}


#nav ul li:hover a, #nav li:hover li a {
    background:none;
    border:none;
    color:#000;
}
#nav ul li a:hover {
    background:#335599 url(../imagenes/bg.png) repeat-x 0 -100px;
    color:#fff;

    border-radius:10px; /*some css3*/
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    text-shadow:0 2px 2px rgba(0,0,0, 0.7);
}

#nav ul li:first-child > a {
    -moz-border-radius-topleft:10px; /*some css3*/
    -moz-border-radius-topright:10px;
    -webkit-border-top-left-radius:10px;
    -webkit-border-top-right-radius:10px;
}
#nav ul li:last-child > a {
    -moz-border-radius-bottomleft:10px; /*some css3*/
    -moz-border-radius-bottomright:10px;
    -webkit-border-bottom-left-radius:10px;
    -webkit-border-bottom-right-radius:10px;
}

/* drop down */
#nav li:hover > ul {
    opacity:1;
    visibility:visible;
}
#nav ul {
    opacity:0;
    visibility:hidden;
    padding:0;
    width:175px;
    position:absolute;
    background:#aabbcc url(../imagenes/bg.png) repeat-x 0 0;
    border:1px solid #7788aa;

    border-radius:10px; /*some css3*/
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    box-shadow:0 2px 2px rgba(0,0,0, .5);
    -moz-box-shadow:0 2px 2px rgba(0,0,0, .5);
    -webkit-box-shadow:0 2px 2px rgba(0,0,0, .5);

    -moz-transition:opacity .25s linear, visibility .1s linear .1s;
    -webkit-transition:opacity .25s linear, visibility .1s linear .1s;
    -o-transition:opacity .25s linear, visibility .1s linear .1s;
    transition:opacity .25s linear, visibility .1s linear .1s;
}
#nav ul li {
    float:none;
    margin:0;
}
#nav ul a {
    font-weight:normal;
    text-shadow:0 2px 2px rgba(255,255,255, 0.7);
}
#nav ul ul {
    left:160px;
    top:0px;
}
	
	

	
</style>
</head>

<body>

    <ul id="nav">
        <li class="current"><a href="http://www.script-tutorials.com/">Inicio</a></li>
        <li><a href="http://www.script-tutorials.com/">Ubicacion</a></li>
        <li><a href="http://www.script-tutorials.com/category/resources/">Productos</a>
            <ul>
                <li><a href="http://www.script-tutorials.com/category/resources/">Ofimatica</a>
                    <ul>
						<li><a href="http://www.script-tutorials.com/category/mysql/">Copiadoras</a></li>
                        <li><a href="http://www.script-tutorials.com/category/php/">Multifuncion</a></li>
                        <li><a href="http://www.script-tutorials.com/category/mysql/">Impresoras</a></li>
                        <li><a href="http://www.script-tutorials.com/category/xslt/">Gran Formato</a></li>
                        <li><a href="http://www.script-tutorials.com/category/ajax/">Duplicadoras</a></li>
						<li><a href="http://www.script-tutorials.com/category/php/">Fax</a></li>
						<li><a href="http://www.script-tutorials.com/category/php/">Impresion Gran formato</a></li>
						<li><a href="http://www.script-tutorials.com/category/php/">Proyectores</a></li>
                    </ul>
                </li>
                <li><a href="http://www.script-tutorials.com/category/resources/">informatica</a>
				 <ul>
					<li><a href="http://www.script-tutorials.com/category/mysql/">Tablets</a></li>
                        <li><a href="http://www.script-tutorials.com/category/php/">Porttiles</a></li>
                        <li><a href="http://www.script-tutorials.com/category/mysql/">Workstations</a></li>
                        <li><a href="http://www.script-tutorials.com/category/xslt/">Monitores</a></li>
                        <li><a href="http://www.script-tutorials.com/category/ajax/">Monitores workstations</a></li>
						<li><a href="http://www.script-tutorials.com/category/php/">Thin clinents</a></li>
						<li><a href="http://www.script-tutorials.com/category/php/">Accesorios para portatiles</a></li>
						<li><a style="text-align:left"href="http://www.script-tutorials.com/category/php/">Accesorios para sobremesa</a></li>
                    </ul>
				<li><a href="http://www.script-tutorials.com/category/resources/">informatica</a>
				<li><a href="http://www.script-tutorials.com/category/resources/">informatica</a>
				<li><a href="http://www.script-tutorials.com/category/resources/">informatica</a>
                    <ul>
                        <li><a href="http://www.script-tutorials.com/tag/captcha/">captcha</a></li>
                        <li><a href="http://www.script-tutorials.com/tag/gallery/">gallery</a></li>
                        <li><a href="http://www.script-tutorials.com/tag/animation/">animation</a></li>
                    </ul>
                </li>
            </ul>
        </li>
		<li><a href="http://www.script-tutorials.com/category/resources/">Software</a>
        <li><a href="http://www.script-tutorials.com/about/">Servicio Tecnico</a></li>
        <li><a href="http://www.script-tutorials.com/creating-css3-dropdown-menu/">Contacto</a></li>
		<li id="derecha"><a href="http://www.script-tutorials.com/creating-css3-dropdown-menu/">Zona Clientes</a></li>
</ul>

</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

css problema explorer

Publicado por chaval2999 (2 intervenciones) el 01/12/2014 20:55:25
Muchas gracias txema por lo visto explorer 9 y anteriores no soportan flex y safari soporta una alternativa .Lo que nose es como hacerlo en explorer 9 y anteriores para que me quede como si fuera capa flex.
APROVECHO PARA DECIR QUE PARA EJECUTAR LA WEB QUE HE PUETOHAY QUE QUITAR EL COMENTARIO DEL #nav QUE ESTA MAL PUESTO .
Tu respuesta me ha ayudado mucho gracias txema
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de txema
Val: 39
Ha mantenido su posición en CSS (en relación al último mes)
Gráfica de CSS

css problema explorer

Publicado por txema (6 intervenciones) el 01/12/2014 21:54:12
Si bien hay alternativas para que explorer en versiones antiguas puedan ser adaptadas a HTML5 y CSS3, creo que en tu caso no te va a servir.

Códigos como (puesto en el head)
1
2
3
<!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
no son suficientes para adaptar nuevas sentencias generadas en CSS3.

Como muchas veces decimos y mal-decimos, explorer ... "is different"
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
1
Comentar
sin imagen de perfil

css problema explorer

Publicado por chaval2999 (2 intervenciones) el 01/12/2014 22:34:28
Muchas gracias, no me sirve los comentarios del if, probe tambien varios y nada, he cambiado flex por absolute el problema es que se me desplaza a la izquierda.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar