Problema visualizzazione pagina su host diversi

Emix

Utente Attivo
15 Feb 2010
596
0
16
Salve a tutti,
non riesco ad uscirne fuori... Ho lo stesso e identico sito fatto su due host diversi (dominiofaidate a pagamento e altervista gratuito).
Su altervista lo vedo in un modo, sull'altro in altro... Chiaramente i siti sono identici, cambia solo l'host...

Per vedere basta andare a questi due link :

www.laviadellanima.com/home.php

adminteclis.altervista.org/layout/home.php

Il codice della pagina è questo :

HTML:
<?php
session_start();
if(isset($_GET['torno']) && $_GET['torno']=="ok"){
	$_SESSION['torno']="ok";
}else{
	$_SESSION['torno']="";
}
$_SESSION['barcodecard']="1234567890123";//questa poi da toglere
include ("connect.php");
$puntiattuali=10;
$_SESSION['cliente']="OasiPC";
$transazioni=34;
$_SESSION['user']="Deborah Di Stefano";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<link href="grafica.css" rel="stylesheet" type="text/css">
<meta name="keywords" content=""> 
<style>
A:link { text-decoration : none ; color: black;}
A:visited {text-decoration : none ; color: black}
A:hover { text-decoration : none ; }
</style>
<style type="text/css">
<!--
img {border: 0; }
-->
</style>
<style type="text/css">
input.groovybutton
{
   font-size:36px;
   font-family:Georgia,serif;
   font-weight:bold;
   color:#66CC66;
   width:250px;
   height:128px;
   background-color:#6699FF;
}
</style>
<title>Maschera Vendite</title>
<style type="text/css">
#main {
width: 920px; /*la larghezza dell’elemento*/
height: 820px; /*l’altezza dell’elemento*/
position: absolute; /*posizione assoluta per potere riposizionare l’elemento*/
left: 50%; /*il bordo sinistra dell’elemento si troverà al 50% della larghezza disponibile*/
top: 50px; /*il bordo superiore dell’elemento si troverà al 50% dell’altezza disponibile*/
margin-left: -460px; /*la metà della larghezza dell’elemento è tolta come margine superiore per centrarlo*/
/*background-color: #f7b76b*/
background-color:#7E6141
}
div#headersx	{ 
    position:absolute; 
    width:270px; height:220;
    overflow:hidden;	
	}
div#headercenter	{ 
    position:absolute; 
    width:340; height:220;
    overflow:hidden;	
	/*background-color: #939*/
	}
div#headerdx	{ 
    position:absolute; 
    width:270px; height:220;
    overflow:hidden;	
	/*background-color:#CCF*/
	}
	div#vedirighe	{ 
    position:absolute; 
    width:920; height:400;
    overflow:hidden;	
	}
	div#logo	{ 
    position:absolute; 
    width:320; height:115;
    overflow:hidden;
	}
	
body {
	font: 11px Rockwell;
}
</style>
<script type="text/javascript" language="Javascript">
function riparti(obj) {
obj.value="";
obj.focus();
}
</script>
</head>
<body bgcolor="b89952">
<form action="vedi_righe.php" target="elenco" method="post" name="inv_bc">
<div id="main" style="left:50%;" >
<div id="logo" style="top:10px; left:300px; width:320px; height:120px;" >
<img src="logo_gestionale.png" width="320" height="115" />
</div>
  <div id="headersx" style="top:135px; left:10px; width:270px; height:220px;" >
  <table width="270">
<tr>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="CERCA LA FIDELITY CARD" class="cercafidelity">
</td></tr>
<TR>
  <TD> &nbsp;&nbsp;&nbsp;<b><font size="2">CARD N°:</font><font color="#FFFFFF" size="2">&nbsp;&nbsp;&nbsp;<?php echo $_SESSION[barcodecard]; ?></font></b></TD></TR>
<TR><TD> &nbsp;&nbsp;&nbsp;<b><font size="2">CLIENTE:</font></b><b><font color="#FFFFFF" size="2">&nbsp;&nbsp;&nbsp;<?php echo $_SESSION[cliente]; ?></font></b></TD></TR>
<?php 
if(!isset($_SESSION['barcode'])){
echo'<tr><td> &nbsp;&nbsp;&nbsp;<b><font size="2">SALDO PUNTI: </font></b>'; 
echo'<b><font color="red">&nbsp;&nbsp;&nbsp; 0 </font></b></td></tr>';
} else {
	$query=mysql_query("SELECT * FROM fidelitypoint WHERE barcode='$_SESSION[barcode]' ");
    //verifico che esista una una card con tale barcode 
    $esiste=mysql_num_rows($query);
    //se $esiste == 0 non cè
    if($esiste > 0){//esiste
        //estraggo usn e pass
        $rows=mysql_fetch_array($query);
		}
		$pt=0;
		$totpt=0;
		$querypunti=mysql_query("Select sum(punti) from fidelitypoint where barcode='$_SESSION[barcode]'");
		$row=mysql_fetch_array($querypunti);
echo'<tr><td> &nbsp;&nbsp;&nbsp;<b><font size="2">SALDO PUNTI: </font></b>';  
echo'<b><font color="red" size="2">&nbsp;&nbsp;&nbsp;' . $row[0] .  '</font></b></td></tr>';
   }
?>
<TR><TD>&nbsp;&nbsp;&nbsp;<b><font size="2">PUNTI ATTUALI:</font></b><b><font color="#FFFFFF" size="2">&nbsp;&nbsp;&nbsp;<?php echo $puntiattuali; ?></font></b></TD></TR><tr><td height="3"></td></tr></table>

<table align="center">
<tr>
<td align="center"><input type="button" onClick="window.open('cerca_tessera.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="USA PUNTI" class="usapunti">
<input type="button" onClick="window.open('cerca_tessera.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="ANAGRAFICA CARD" class="anagraficacard">
</td></tr>
</table>
<table align="center">
<tr> <td height="2"></td></tr>
<tr>
<td></td>
<td align="center">
<input type="text" placeholder="Barcode" name="barcodeart_new" class="barcode" id="barcodeart" value="" onFocus="riparti(this)"></td><td>
<input type="submit" class="visto" name="visto" value=""></td>
</TR>
</TABLE>
</div>
 <div id="headercenter" style="top: 135px; left: 292px; width: 340px; height: 220px;" >
 <TABLE width="340">
<tr>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="LOGOUT" class="logout">
</td>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="TURNI" class="turni">
</td>
<td align="center""><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="APPUNTI" class="appunti">
</td>
</Tr>
</TABLE>
<table align="left">
<TR><TD><b><font size="2">OPERATORE</font></b></TD><td><b><font color="#FFFFFF" size="2"><img src="administrator.png" height="14" width="14"> &nbsp;&nbsp;<?php echo $_SESSION[user]; ?></font></b></TD></TR>
<TR><TD><b><font size="2">DATA</font></b></TD><TD><b><font color="#FFFFFF" size="2"><?php echo (date("d/m/Y")); ?></font></b></TD></TR>
<tr><td><b><font size="2">ORA</font></b></td><td> <b><font color="#FFFFFF" size="2"> <?php echo (date("H:i"));?></font></b></td></tr>
<tr><td><b><font size="2">TRANSAZIONE N°</font></b></td><td><b> <font color="#FFFFFF" size="2"> <?php echo $transazioni; ?></font></b></td></tr>
</table>
<table align="center">
<tr>
<td></td></tr>
<tr>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="ACCONTO" class="acconto"></td>

<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="ACCREDITO" class="buonoreso">
</td>

<td align="center">
<input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="CREA FATTURA" class="creafattura"></td></tr>

<tr>

<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="RESO ARTICOLO" class="resoart"></td>

<td align="center"><input type="button" 
onClick="window.open('cerca.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="CERCA ARTICOLO" class="cercaarticolo"></td>

<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="ASSISTENZA" class="assistenza">
</td></tr>
</table>
</div>
<div id="headerdx" style="top:135px; left:640px; width:270px; height:220px;" >
<table width="270">
<tr>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="AREA SUPERVISOR" class="areasuper">
</td></tr>
<tr>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="CLIENTI" class="rubricaclienti">
<input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="FORNITORI" class="rubricaclienti"></td>

</Tr>
<tr>
<td align="center"><input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="BUONI REGALO" class="areasuper">
</td></tr>
<tr>
<td align="center">
<input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="BUONO € 5,00" class="buono">
<input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="BUONO € 10,00" class="buono">
</td>
</Tr>
<tr>
<td align="center">
<input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="BUON0 € 20,00" class="buono">
<input type="button" onClick="window.open('puntifidelity.htm', 'Cerca card', 'width=690, height=700, resizable, status, scrollbars=1, location');"
value="BUONO € 50,00" class="buono">
</td>
</Tr>
</TABLE>
</div>
<div id="vedirighe" style="top:365px; left:10px; width:920px; height:400px;" >

<TABLE>
<TR>
<td width="620">
<iframe name="elenco" src="vedi_righe.php" width="920" scrolling="auto" height="400"></iframe>
</td>
</TR>
</TABLE>
  <p align="center"><font color="#00FF00">BLOCCO DESCRIZIONE</font></p>
</div>
</div>
</form> 
</body>

</html>

ed il CSS quest'altro :

Codice:
@charset "utf-8";
/* CSS Document */

<style type="text/css">

body { background-image: url(sfondo1.jpg); 
background-repeat: repeat-x;
}
* { font-family:Arial; }
h2 { padding:0 0 5px 5px; }
h2 a { color: #224f99; }
a { color:#999; text-decoration: none; }
a:hover { color:#802727; }
p { padding:0 0 5px 0; }


input { padding:5px; border:1px solid #999; border-radius:4px; -moz-border-radius:4px; -web-kit-border-radius:4px; -khtml-border-radius:4px; }


.cercafidelity {
background-color: #0CC ; font-family: verdana; font-size:10px; width:250px ; height:40px;
} 

.usapunti {
background-color: #F0F ; font-family: verdana; font-size:10px; width:123px ; height:30px;
} 
.anagraficacard {
background-color: #0CC ; font-family: verdana; font-size:10px; width:123px ; height:30px;
} 

.logout {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:40px;
} 
.turni {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:40px;
}
.appunti {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:40px;
} 
.areasuper {
background-color: #F0F ; font-family: verdana; font-size:10px; width:250px ; height:40px;
} 
.acconto {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:30px;
} 
.creafattura {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:30px;
} 
.resoart {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:30px;
} 
.buonoreso {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:30px;
} 
.rubricaforn {
background-color: #F0F ; font-family: verdana; font-size:10px; width:123px ; height:30px;
} 
.rubricaclienti {
background-color: #F0F ; font-family: verdana; font-size:10px; width:123px ; height:30px;
} 
.buonoregalo {
background-color: #F0F ; font-family: verdana; font-size:10px; width:250px ; height:40px;
} 
.assistenza {
background-color: #F0F ; font-family: verdana; font-size:10px; width:109px ; height:30px;
} 
.cercaarticolo {
background-color: #0CC ; font-family: verdana; font-size:10px; width:109px ; height:30px;
}
.buono {
background-color: #F0F ; font-family: verdana; font-size:10px; width:123px ; height:45px;
} 

input.tastobuoni {
background-color: #F0F ; font-family: verdana; font-size:10px; width:250px ; height: 120 px;
} 
.visto{
width: 40px;
height: 40px;
background-image: url('visto.png');
background-repeat: no-repeat;
background-position: center;
}
.barcode {
	height: 30px;
	width: 140px;
}


</style>

Aiutatemi a capire perche non riesco a venirne a capo....
 

Emix

Utente Attivo
15 Feb 2010
596
0
16
a me e alla mia cliente, alcune volte, sul dominio laviadellanima.com si vede piu piccolo... Mentre su altervista sempre uguale... Da cosa può dipendere? ora infatti con chrome lo vedo bene anche io, Venerdì lo vedevo piu piccolo anche io... Non so che fare...
 

borgo italia

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
4 Feb 2008
16.046
150
63
PR
www.borgo-italia.it
ciao
per verifica ho provato con IE (un po datato sono ancora alla 8) e li vedo entrambi uguali.
l'unica cosa che vedo che in alcuni width e height non hai messo px (o altra unità di misure) es.

Codice:
div#headercenter	{ 
    position:absolute; 
    width:340; height:220;
    overflow:hidden;	
	/*background-color: #939*/
}

può essere che il bw delle volte non capisca come comportarsi, ma non so se è quello
 
Discussioni simili
Autore Titolo Forum Risposte Data
Nicola Miceli Problema Visualizzazione pagina WP su Iphone Smartphone e tablet 0
C Problema visualizzazione pagina ASP ASP.NET 4
V problema visualizzazione Pagina HTML e CSS 3
L problema visualizzazione pagina web HTML e CSS 3
Y Problema visualizzazione PDF generato da fpdf PHP 1
M Problema visualizzazione colori in photoshop Photoshop 0
M [HTML] Problema visualizzazione immagini su dispositivi HTML e CSS 4
Antonio Nervi [Javascript] Problema visualizzazione banner accettazione cookies Javascript 6
A Problema visualizzazione photoshop elements 9 Photoshop 1
A [Javascript] Problema visualizzazione posizione corrente su mappa Javascript 2
A [PHP] Problema visualizzazione nome utente loggato su sito ecommerce PHP 23
fulviozecchin Problema Visualizzazione tabelle HTML nel Browser HTML e CSS 9
asevenx problema visualizzazione menu sovrapposto allo slider WordPress 7
N Problema visualizzazione dati dopo GET PHP 19
M Problema con visualizzazione immagini da BLOB PHP 1
D problema visualizzazione su smartphones Google Ads (AdWords) 1
LuigiDonato Problema Visualizzazione Menù HTML e CSS 17
B Problema di visualizzazione di uno Slider in jquery jQuery 4
asevenx problema visualizzazione slider con firefox HTML e CSS 3
G Problema visualizzazione sito su iOS HTML e CSS 4
A problema slideshow con visualizzazione mobile HTML e CSS 6
M Problema visualizzazione immagini su blog Tumblr HTML e CSS 2
N ciao a tutti ho un problema con la visualizzazione delle pagine in php PHP 1
D Problema visualizzazione oltre 50 record .... MySQL 2
andrea.peo Problema query con join visualizzazione record ripetuti PHP 5
R Problema di visualizzazione testo con google crome WordPress 1
P Problema visualizzazione immagine da database MySQL 3
S problema di visualizzazione PHP 7
A problema nella visualizzazione file caricato tramite ftp WordPress 0
asevenx problema visualizzazione sito su tablet e portatile PHP 1
A problema visualizzazione dati da tabella PHP 15
N Problema visualizzazione hyperlink con Google Chrome. HTML e CSS 2
S Problema visualizzazione HTML e CSS 5
M Problema visualizzazione codice sorgente altro sito PHP 4
S Problema visualizzazione chrome HTML e CSS 3
GoshMaledetto Problema valori giusti in array sbagliati in visualizzazione Javascript 2
S Problema visualizzazione codice PHP 4
M Problema visualizzazione immagine PHP 6
P Problema visualizzazione pulsanti dopo scroll jQuery 6
D Problema visualizzazione immagini png PHP 1
M problema di visualizzazione con FF ed Opera HTML e CSS 11
O Problema visualizzazione dati [era:Un problema] HTML e CSS 11
P Problema visualizzazione sito wordpress CMS (Content Management System) 2
A Problema estrazione e visualizzazione immagine da database PHP 16
L Problema visualizzazione immagini formato Tif [era: Formati Tif Problema?!] Windows e Software 1
S Problema permessi visualizzazione immagine PHP 1
S Problema visualizzazione lista amici PHP 6
G Problema visualizzazione immagini PHP 1
C Problema con visualizzazione dell'immagina da tabella database PHP 5
S Problema visualizzazione HTML e CSS 0

Discussioni simili