obamaself Posted June 1, 2012 at 08:52 AM Report #459629 Posted June 1, 2012 at 08:52 AM Boas, o meu menu em google chrome dá perfeitamente: http://img593.imageshack.us/img593/483/menuchrome.jpg mas se eu mudar para internet explorer fica assim: http://img823.imageshack.us/img823/8956/menuie.jpg Para pôr a dar em ie as sub-itens usei: <meta http-equiv="X-PT-Compatible" content="IE=9; charset=utf-8" /> Sem isto eles não aparecem, mas com isto eles aparecem, só que quando tem acentos as letras ficam daquela maneira 😕
nunolevezinho Posted June 1, 2012 at 09:08 AM Report #459637 Posted June 1, 2012 at 09:08 AM (edited) Tenta meter: <meta http-equiv="X-PT-Compatible" content="IE=9; charset=iso-8859-1" /> Edited June 1, 2012 at 09:09 AM by nunolevezinho
obamaself Posted June 1, 2012 at 09:11 AM Author Report #459639 Posted June 1, 2012 at 09:11 AM Tenta meter: <meta http-equiv="X-PT-Compatible" content="IE=9; charset=iso-8859-1" /> não dá. Fica igual.
brunoais Posted June 1, 2012 at 09:34 AM Report #459647 Posted June 1, 2012 at 09:34 AM Isso é uma página em PHP, certo? Usa a função header() do PHP para enviares os headers ao browser sem teres que usar meta tags para isso. "[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31 Life is a genetically transmitted disease, induced by sex, with death rate of 100%.
nunolevezinho Posted June 1, 2012 at 09:38 AM Report #459652 Posted June 1, 2012 at 09:38 AM Isso é uma página em PHP, certo? Usa a função header() do PHP para enviares os headers ao browser sem teres que usar meta tags para isso. Acho que é isto: header('Content=IE9; http-equiv=X-PT-Compatible; charset=utf-8',true);
obamaself Posted June 1, 2012 at 09:49 AM Author Report #459655 Posted June 1, 2012 at 09:49 AM Acho que é isto: header('Content=IE9; http-equiv=X-PT-Compatible; charset=utf-8',true); dá-me isto: Warning: Cannot modify header information - headers already sent by (output started at F:\xampp\htdocs\joomla1\SGP\Principal\principal.php:5) in F:\xampp\htdocs\joomla1\SGP\menu.php on line 4
brunoais Posted June 1, 2012 at 09:51 AM Report #459657 Posted June 1, 2012 at 09:51 AM (edited) Acho que é isto: header('Content=IE9; http-equiv=X-PT-Compatible; charset=utf-8',true); *slap* header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); dá-me isto: Warning: Cannot modify header information - headers already sent by (output started at F:\xampp\htdocs\joomla1\SGP\Principal\principal.php:5) in F:\xampp\htdocs\joomla1\SGP\menu.php on line 4 Tens que meter antes da linha 5. Edited June 1, 2012 at 09:51 AM by brunoais "[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31 Life is a genetically transmitted disease, induced by sex, with death rate of 100%.
obamaself Posted June 1, 2012 at 09:56 AM Author Report #459658 Posted June 1, 2012 at 09:56 AM E eu meti. O menu fiz num ficheiro php á parte. E em todos os outros faço o include do menu. Tenho assim a primeira parte do menu: <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); ?> <link rel="stylesheet" type="text/css" href="estilo.css" /> <style media="all" type="text/css">@import "../estilo.css"; </style> <style type="text/css"> .style1 { text-align: center; } </style> <body> <ul id="nav" class="menu" style="width: 818px; height: 26px;"> <?php Function logout() { session_destroy(); $utilizador="carla.sampaio"; header ("Location: ../Login/index.php"); } ?> o resto é a criação de li e de ul e assim.
MASNathan Posted June 1, 2012 at 10:36 AM Report #459666 Posted June 1, 2012 at 10:36 AM Boas... experimenta colocar isto <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); ?> no topo da página... antes de aparecer qualquer tipo de html
obamaself Posted June 1, 2012 at 10:40 AM Author Report #459667 Posted June 1, 2012 at 10:40 AM Boas... experimenta colocar isto <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); ?> no topo da página... antes de aparecer qualquer tipo de html É o que está :/
MASNathan Posted June 1, 2012 at 10:47 AM Report #459670 Posted June 1, 2012 at 10:47 AM É o que está :/ não tens mais código antes disso? <html><head></head> ou assim?
obamaself Posted June 1, 2012 at 10:54 AM Author Report #459672 Posted June 1, 2012 at 10:54 AM (edited) Não, nada mesmo. Vejam se conseguem fazer download apartir deste link: http://www.4shared.c...6u94/Menu.html? http://www.mediafire.com/?bacrr1x39ri24rj Edited June 1, 2012 at 10:59 AM by obamaself
MASNathan Posted June 1, 2012 at 11:03 AM Report #459675 Posted June 1, 2012 at 11:03 AM Perguntas de Despiste: - Estás a fazer include deste ficheiro noutro lado? se sim -> o outro ficheiro faz output de alguma cena antes do include? do estilo <html><head></head> (header da página)?
nunolevezinho Posted June 1, 2012 at 11:07 AM Report #459677 Posted June 1, 2012 at 11:07 AM Mete no topo da página logo asseguir a tag <php - ob_start();
obamaself Posted June 1, 2012 at 11:10 AM Author Report #459678 Posted June 1, 2012 at 11:10 AM (edited) Aqui está um exemplo http://www.mediafire...acrmoa5mwdz6l8d Neste exemplo, na pagina principal, está a fazer o include duas vezes, enganei-me. Mete no topo da página logo asseguir a tag <php - ob_start(); Se eu puser isso, os caractéres ficam direitos, mas em IE os subitems desaparecem. Só é preciso que no IE apareçam os subitems e que os caracteres sejam normais Edited June 1, 2012 at 11:17 AM by obamaself
MASNathan Posted June 1, 2012 at 11:16 AM Report #459682 Posted June 1, 2012 at 11:16 AM experimenta por <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); session_start(); ?> no topo da pagina principal e retiras <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); ?> do menu.php
obamaself Posted June 1, 2012 at 11:19 AM Author Report #459683 Posted June 1, 2012 at 11:19 AM experimenta por <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); session_start(); ?> no topo da pagina principal e retiras <?php header('X-PT-Compatible: IE9; charset=utf-8'); header('Content-Type: text/html; charset=UTF-8'); ?> do menu.php Está perfeito no google chrome, mas no IE não aparecem os subitems 😕
MASNathan Posted June 1, 2012 at 11:27 AM Report #459686 Posted June 1, 2012 at 11:27 AM Está perfeito no google chrome, mas no IE não aparecem os subitems 😕 isso de não aparecerem os subitems já é uma questão de css e não de php...
brunoais Posted June 2, 2012 at 09:14 AM Report #459822 Posted June 2, 2012 at 09:14 AM E eu meti. Tem que estar antes da linha 5 do ficheiro: F:\xampp\htdocs\joomla1\SGP\Principal\principal.php "[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31 Life is a genetically transmitted disease, induced by sex, with death rate of 100%.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now