Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2005
    Messaggi
    78

    Problema con frameset e XHTML

    Ciao a tutti,

    Mi piacerebbe creare una pagina "contenitore" composta da 2 frame uno di 0px e l'altro grande tutta la pagina.

    L'ho realizzata cosi':
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
    	<head>
    		<title>sito</title>
    	</head>
    	<frameset rows="0, *">
    		<frame frameborder="0" marginwidth="0" marginheight="0" name="none" src="none.html" noresize="noresize" scrolling="no" />
    		<frame frameborder="0" marginwidth="0" marginheight="0" name="main" id="main" src="who.html" noresize="noresize" />
    
    		<noframes>
    			<body>
    				
    
    No Frame</p>
    			</body>
    		</noframes>
    	</frameset>
    </html>
    Il problema é che quando la apro (IE7) vedo un bordo bianco in alto di qualche pixel.
    (con altri browser non so che succede)

    Posso risolvere modificando la riga 6 con:
    codice:
    <frameset rows="0, *" frameborder="0">
    pero' a questo punto http://validator.w3.org/ in quanto "frameset" non accetta "frameborder", esiste un modo per risolvere e passare la verifica oppure mi devo tenere l'errore?


    Grazie
    blp

  2. #2
    Utente bannato
    Registrato dal
    Sep 2007
    Messaggi
    2,777
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Documento senza titolo</title>
    </head>
    
    <frameset rows="0,100%"" frameborder="NO" border="0" framespacing="0">
          <frame src="1.htm" name="topFrame" frameborder="no" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
          <frame src="2.htm" name="mainFrame" frameborder="no" scrolling="no" noresize="noresize" id="mainFrame" title="mainFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes></html>

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2005
    Messaggi
    78
    Grazie per la tua risposta,

    Purtroppo anche il tuo codice non passa la validazione w3... qualche altro suggerimento?

    Grazie
    blp

  4. #4
    Utente bannato
    Registrato dal
    Sep 2007
    Messaggi
    2,777
    Originariamente inviato da blp
    Grazie per la tua risposta,

    Purtroppo anche il tuo codice non passa la validazione w3... qualche altro suggerimento?

    Grazie
    blp
    Solo così passa la validazione:
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Documento senza titolo</title>
    </head>
    
    <frameset rows="0,100%">
          <frame src="UntitledFrame-2.htm" name="topFrame" id="topFrame" title="topFrame" />
          <frame src="Untitled-1.htm" name="mainFrame" id="mainFrame" title="mainFrame" />
    </frameset>
    </html>

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 © 2024 vBulletin Solutions, Inc. All rights reserved.