Pagina 1 di 3 1 2 3 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 22

Discussione: Problemi con Firefox

  1. #1

    Problemi con Firefox

    Salve a tutti:
    sono nuovo e vorrei sapere una cosa:
    come mai il sito che ho costruito con dreamweaver 8 si vede bene con IE ma non con gli altri browser? Proprio l'impaginazione risulta errata.
    Mi potete aiutare?
    Io non ne capisco nulla di tag,html,css...
    Please...
    il sito in questione è: www.pacasteorto.org

  2. #2
    Utente di HTML.it L'avatar di salasir
    Registrato dal
    Apr 2004
    Messaggi
    1,881
    Se fai una piccola ricerca troverai decine di domande simili.
    Purtroppo IE è uno dei browser che segue meno gli standard W3C. :rollo:
    Quindi quello che scrivi e controlli solo con IE molto spesso non funzionerà con gli altri browser. Viceversa, se scrivi e controlli con Firefox, al 95% andrà bene anche con IE.
    Ci sono passato anch'io, e penso molti altri.
    La tecnica è quella di far sì che si veda correttamente su FF e poi verificare su IE.

  3. #3
    Si, solo che non so di preciso cosa modificare.
    Questo è il log .css
    Potete dirmi dove devo modificare?
    body {
    margin: 0;
    margin-top: 0px;
    margin-left: -5px; /*to override nn4 margin*/
    padding: 0 0 0 0; /*nn4 specific top padding*/
    background-color: #FFFFFF;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    }


    em {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-indent: 1.5em;
    font-weight: bolder;
    font-size: .8em;
    }
    a {
    text-decoration: none;
    font-weight: bold;
    }

    a:hover {
    text-decoration: underline;
    color: #33CC00;

    }
    emergency {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 2em;
    font-style: italic;
    font-weight: normal;
    }
    h2 {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    color: Red;
    font-size: 1.25em;
    margin-left: 10px;
    }

    h3 {
    font-family: arial;
    font-size: 1em;
    margin-left: 10px;
    color: #33CC00;

    }

    h4 {
    color: DarkRed;
    font-family: arial, sans-serif;
    font-size: 0.9em;
    margin: 0.5em 0 0.5em 10px;
    }

    img {
    border: 0;
    }

    .date {
    font-family: arial, sans-serif;
    font-size: 0.8em;
    line-height: 1.5em;
    font-weight: bold;
    margin: 1.5em 0 0 -1.5em;
    }

    .first {
    font-size: 0.8em;
    line-height: 1.5em;
    margin: 5px 10px;
    background-color: #66FF99;
    padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-left: 10px;
    border: thin solid #006600;



    }

    .indent {
    text-indent: 1.5em;
    font-size: 0.8em;
    line-height: 1.5em;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin-top: 5px;
    margin-right: 20px;
    margin-bottom: auto;
    margin-left: 0;

    }
    .indentverde {
    text-indent: 1.5em;
    font-size: 0.8em;
    line-height: 1.5em;
    margin: 5px 20px auto 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: Green;
    font-weight: bold;
    }

    .normal {
    font-size: 0.8em;
    line-height: 1.5em;
    margin: 5px 20px auto 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;

    }

    A.topmenu:link {
    FONT-WEIGHT: normal;
    FONT-SIZE: 13px;
    COLOR: white;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.topmenu:visited {
    FONT-WEIGHT: normal;
    FONT-SIZE: 13px;
    COLOR: white;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.topmenu:hover {
    FONT-WEIGHT: normal;
    FONT-SIZE: 13px;
    COLOR: Orange;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.leftmenu:link {
    FONT-WEIGHT: bold;
    FONT-SIZE: 11px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.leftmenu:visited {
    FONT-WEIGHT: bold;
    FONT-SIZE: 11px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.leftmenu:hover {
    FONT-WEIGHT: bold;
    FONT-SIZE: 11px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: underline;
    }
    A.page:link {
    FONT-WEIGHT: bold;
    FONT-SIZE: 12px;
    COLOR: Black;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.page:visited {
    FONT-WEIGHT: bold;
    FONT-SIZE: 12px;
    COLOR: Black;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.page:hover {
    FONT-WEIGHT: bold;
    FONT-SIZE: 12px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.grande:link {
    FONT-WEIGHT: bold;
    FONT-SIZE: 14px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.grande:visited {
    FONT-WEIGHT: bold;
    FONT-SIZE: 14px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    A.grande:hover {
    FONT-WEIGHT: bold;
    FONT-SIZE: 14px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: underline;
    }
    .testonero {
    FONT-WEIGHT: bold;
    FONT-SIZE: .85em;
    COLOR: Black;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    .testogrande {
    FONT-WEIGHT: bold;
    FONT-SIZE: .85em;
    COLOR: #8B0000;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    }
    #colprinc {
    display : list-item ;
    border-left: 2px solid #33CC00;
    border-right: 2px solid #33CC00;
    margin-left: 5px;
    margin-right: 5px;
    border-top: 2px solid Silver;
    border-bottom: medium solid #A52A2A;
    width: 500px;
    }
    #coldestra {
    display: list-item;
    margin-left: 2px;
    margin-right: 2px;
    border-top: 2px solid Silver;
    border-bottom: medium solid #A52A2A;
    border-right: 1px solid Silver;
    width: 150px;
    }
    #colsinistra {
    display: list-item;
    margin-left: 2px;
    margin-right: 2px;
    border-top: 2px solid Silver;
    border-bottom: medium solid #A52A2A;
    background-repeat: repeat-y;
    width: 150px;

    }
    .indirizzo {
    FONT-WEIGHT: bold;
    FONT-SIZE: 10px;
    COLOR: DarkRed;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    }

    .testorosso {
    color: Red;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .85em;
    font-weight: bold;
    margin-left: 15px;
    }
    .rigaverde {
    background-color: #008000;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: x-small;
    font-style: normal;
    color: White;
    padding: 3px;
    }
    li.option {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: x-small;
    font-style: normal;
    list-style-image: url(../pic/favicon/extra/preview_16x16.png);
    padding-bottom: 10px;
    text-indent: 1.5em;
    list-style: outside;
    padding: 5px;
    }
    .tornasu {
    margin-right: 15px;
    line-height: 15px;
    }
    Voi ne capite di queste cose, io no....sigh..

  4. #4
    inoltre chi ha fatto il sito (e non è raggiungibile in quanto è in navigazione!!!) nella stessa cartella del css ha inserito questi due files che loggo: il primo si chiama:

    ssm.js e dice queste cose:


    //Static Slide Menu 6.5 © MaXimuS 2000-2001, All Rights Reserved.
    //Site: http://www.absolutegb.com/maximus
    //Script featured on Dynamic Drive (http://www.dynamicdrive.com)

    NS6 = (document.getElementById&&!document.all)
    IE = (document.all)
    NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

    tempBar='';barBuilt=0;ssmItems=new Array();

    function truebody(){
    return (document.compatMode!="BackCompat")? document.documentElement : document.body
    }

    moving=setTimeout('null',1)
    function moveOut() {
    if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) {
    clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(10)}
    else {clearTimeout(moving);moving=setTimeout('null',1)} };
    function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
    function moveBack1() {
    if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) {
    clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
    else {clearTimeout(moving);moving=setTimeout('null',1)} }
    function slideMenu(num){
    if (IE) {ssm.pixelLeft += num;}
    if (NS6) {ssm.left = parseInt(ssm.left)+num+"px";}
    if (NS) {ssm.left = parseInt(ssm.left)+num; bssm.clip.right+=num;bssm2.clip.right+=num;}}

    function makeStatic() {
    if (NS||NS6) {winY = window.pageYOffset;}
    if (IE) {winY = truebody().scrollTop;}
    if (NS6||IE||NS) {
    if (winY!=lastY&&winY>YOffset-staticYOffset) {
    smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
    else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
    smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
    else {smooth=0}
    if(smooth > 0) smooth = Math.ceil(smooth);
    else smooth = Math.floor(smooth);
    if (IE) bssm.pixelTop+=smooth;
    if (NS6) bssm.top=parseInt(bssm.top)+smooth+"px"
    if (NS) bssm.top=parseInt(bssm.top)+smooth
    lastY = lastY+smooth;
    setTimeout('makeStatic()', 1)}}

    function buildBar() {
    if(barText.indexOf('<IMG')>-1) {tempBar=barText}
    else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+"
    "}}
    document.write('<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'">'+tempBar+'</font></p></TD>')}

    function initSlide() {
    if (NS6){ssm=document.getElementById("thessm").style; bssm=document.getElementById("basessm").style;
    bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidt h+" "+document.getElementById("thessm").offsetHeig ht+" 0)";ssm.visibility="visible";}
    else if (IE) {ssm=document.all("thessm").style;bssm=document.al l("basessm").style
    bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";bssm.visibility = "visible";}
    else if (NS) {bssm=document.layers["basessm1"];
    bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
    bssm2.clip.left=0;ssm.visibility = "show";}
    if (menuIsStatic=="yes") makeStatic();}

    function buildMenu() {
    if (IE||NS6) {document.write('<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Left : '+XOffset+'px ;Top : '+YOffset+'px ;Z-Index : 20;width:'+(menuWidth+barWidth+10)+'px"><DIV ID="thessm" style="Position : Absolute ;Left : '+(-menuWidth)+'px ;Top : 0 ;Z-Index : 20;" onmouseover="moveOut()" onmouseout="moveBack()">')}
    if (NS) {document.write('<LAYER name="basessm1" top="'+YOffset+'" LEFT='+XOffset+' visibility="show"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+(-menuWidth)+'" onmouseover="moveOut()" onmouseout="moveBack()">')}
    if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'px" bgcolor="'+menuBGColor+'"><TR><TD>')}
    document.write('<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'px" bgcolor="'+menuBGColor+'">');
    for(i=0;i<ssmItems.length;i++) {
    if(!ssmItems[i][3]){ssmItems[i][3]=menuCols;ssmItems[i][5]=menuWidth-1}
    else if(ssmItems[i][3]!=menuCols)ssmItems[i][5]=Math.round(menuWidth*(ssmItems[i][3]/menuCols)-1);
    if(ssmItems[i-1]&&ssmItems[i-1][4]!="no"){document.write('<TR>')}
    if(!ssmItems[i][1]){
    document.write('<td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'px" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+ssmItems[i][5]+'" COLSPAN="'+ssmItems[i][3]+'"><font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'">'+ssmItems[i][0]+'</font></td>')}
    else {if(!ssmItems[i][2])ssmItems[i][2]=linkTarget;
    document.write('<TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+ssmItems[i][5]+'px" COLSPAN="'+ssmItems[i][3]+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"><A HREF="'+ssmItems[i][1]+'" target="'+ssmItems[i][2]+'" CLASS="ssmItems">'+ssmItems[i][0]+'</DIV></LAYER></ILAYER></TD>')}
    if(ssmItems[i][4]!="no"&&barBuilt==0){buildBar();barBuilt=1}
    if(ssmItems[i][4]!="no"){document.write('</TR>')}}
    document.write('</table>')
    if (NS6){document.write('</TD></TR></TABLE>')}
    if (IE||NS6) {document.write('</DIV></DIV>')}
    if (NS) {document.write('</LAYER></ILAYER></LAYER>')}
    theleft=-menuWidth;lastY=0;setTimeout('initSlide();', 1)}


    e l'altro: ssItems.js che dice:

    <!--

    /*
    Configure menu styles below
    NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
    */
    YOffset=150; // no quotes!!
    XOffset=0;
    staticYOffset=30; // no quotes!!
    slideSpeed=20 // no quotes!!
    waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
    menuBGColor="black";
    menuIsStatic="yes"; //this sets whether menu should stay static on the screen
    menuWidth=150; // Must be a multiple of 10! no quotes!!
    menuCols=2;
    hdrFontFamily="verdana";
    hdrFontSize="2";
    hdrFontColor="white";
    hdrBGColor="#170088";
    hdrAlign="left";
    hdrVAlign="center";
    hdrHeight="15";
    linkFontFamily="Verdana";
    linkFontSize="2";
    linkBGColor="white";
    linkOverBGColor="#FFFF99";
    linkTarget="_top";
    linkAlign="Left";
    barBGColor="#444444";
    barFontFamily="Verdana";
    barFontSize="2";
    barFontColor="white";
    barVAlign="center";
    barWidth=20; // no quotes!!
    barText="SIDE MENU"; // <IMG> tag supported. Put exact html for an image to show.

    ///////////////////////////

    // ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
    ssmItems[0]=["Menu"] //create header
    ssmItems[1]=["Dynamic Drive", "http://www.dynamicdrive.com", ""]
    ssmItems[2]=["What's New", "http://www.dynamicdrive.com/new.htm",""]
    ssmItems[3]=["What's Hot", "http://www.dynamicdrive.com/hot.htm", ""]
    ssmItems[4]=["Message Forum", "http://www.codingforums.com", "_new"]
    ssmItems[5]=["Submit Script", "http://www.dynamicdrive.com/submitscript.htm", ""]
    ssmItems[6]=["Link to Us", "http://www.dynamicdrive.com/link.htm", ""]

    ssmItems[7]=["FAQ", "http://www.dynamicdrive.com/faqs.htm", "", 1, "no"] //create two column row
    ssmItems[8]=["Email", "http://www.dynamicdrive.com/contact.htm", "",1]

    ssmItems[9]=["External Links", "", ""] //create header
    ssmItems[10]=["JavaScript Kit", "http://www.javascriptkit.com", ""]
    ssmItems[11]=["Freewarejava", "http://www.freewarejava.com", ""]
    ssmItems[12]=["Coding Forums", "http://www.codingforums.com", ""]

    buildMenu();

    //-->


    CHE VUOL DIRE?

  5. #5
    Utente di HTML.it L'avatar di salasir
    Registrato dal
    Apr 2004
    Messaggi
    1,881
    Con FF mi sembra di vedere due punti tipo quelli di una lista ... che però non esiste ...
    Prova a iniziare a definire un DOCTYPE corretto così i browser sanno con che cosa hanno a che fare
    Qui un elenco dei doctype validi http://www.w3.org/QA/2002/04/valid-dtd-list.html

    Per quanto riguarda js, mi spiace ma non sono ferrato in merito

  6. #6
    Utente di HTML.it
    Registrato dal
    Feb 2006
    Messaggi
    2,620
    Con firefox 1.5.0.1 tutto ok

  7. #7
    Ma come tutto ok?
    Il sito si vede,ma non come in IE!!!

    Per quanto riguarda i DOCTYPE, ho letto gli articoli, ma da ignorante non ho capito molto. Non so cosa e dove modificare. Purtropppo cose che potrebbero sembrare banali (e magari lo sono) sono incomprensibili per me.

  8. #8
    Utente di HTML.it L'avatar di salasir
    Registrato dal
    Apr 2004
    Messaggi
    1,881
    Originariamente inviato da Simosito
    Con firefox 1.5.0.1 tutto ok


    Allora. Prima del tag <html> inserisci questo:
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    e vedi cosa succede. Ho preso un livello basso per evitare problemi.

  9. #9
    Utente di HTML.it L'avatar di salasir
    Registrato dal
    Apr 2004
    Messaggi
    1,881
    Mmm ... prova a togliere per un momento il js di Shinystat.
    Sembra che ci sia una lista <ul> non chiusa e che le due colonne centrale e destra diventino due elementi della lista (vedi quei due puntini in alto a sinistra delle due colonne?) :master:

  10. #10
    Ho aggiunto, ho aggiornato ma mi sembra non sia cambiato nulla.
    Se mi dai altri codici io posso provare.
    ps: devo eliminarlo quello che ho inserito?
    Ciao

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.