Originariamente inviato da imoby
Grazie infinite!
Magari domani dall'ufficio vedo di postare direttamente il codice del frame che così abbiamo qualcosa di pratico su cui discutere.
Ho fatto qualche prova e l'unica soluzione che ho trovato fino ad ora è
Pagina con iframe:
codice:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<style type="text/css" media="screen">
#contenuto {
overflow-x:hidden;
}
</style>
</head>
<body>
<iframe id="contenuto"
src="testo.htm"
name="pro"
width="200"
marginwidth="1"
height="200"
marginheight="1"
align="middle"
hspace="0"
</iframe>
</body>
</html>
Pagina richiamata nell'iframe:
codice:
<html>
<head>
</head>
<body style="overflow-x:hidden;">
dddddddddddddddddddddddddddddddddddddddddddddddd</p>
ggggggggggggggggggggggggggggggggggggggggggggggg</p>
gggggggggggggggggggggggggggggggggggggggggggggg</p>
ddddddddddddddddddddddddddddddddddddd</p>
dddddddddddddddddddddddddddddddddddddddddddddd</p>
ddddddddddddddddddddddddddddddddddddddddd</p>
dddddddddddddddddddddddddddddddddddddddddddddddd</p>
dddddddddddddddddddddddddddddddddddddddddddddddddd</p>
ddddddddddddddddddddddddddddddddddddddddddddddddd</p>
dddddddddddddddddddddddddddddddddddddd</p>
</body>
</html>
Cioè overflow-x:hidden; l'ho messo sia nell'id dell'iframe sia nel body della pagina richiamata nell'iframe e così funziona anche con IE7.
Io l'ho messo inline ma naturalmente va nella dichiarazione di stile o esterna o nell'head