Problema sorrimento iFrame???

MikiProgrammer

Utente Attivo
9 Mag 2015
63
2
8
Buongiorno,
in una pagina del mio sito, ho un iframe, nel quale stampo dei risultati ottenuti con PHP.
Però, ho notato, che se i risultati sono maggiori di quelli che l'iframe può contenere, non compare la barra di scorrimento, ma il testo viene tagliato.
C'è una soluzione a questo problema?
Grazie
 

Max 1

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
29 Feb 2012
4.449
338
83
Posta il codice che vediamo cosa hai fatto
 

MikiProgrammer

Utente Attivo
9 Mag 2015
63
2
8
Pagina in cui c'è l'iframe:
HTML:
<html>
<head>
    <style type="text/css">
        body{
            overflow:visible;
        }
        .iframe{
            overflow:visible;
            position:absolute;
            left: 70px;
            top: 20px;
        }
    </style>
</head>
<body bgcolor=#FFBF00>
    <a href="1.php"><img src="immagini/button1.png" width="50" height="131"></a><br>
    <a href="asdf.php"><img src="immagini/button2s.png" width="50" height="131"></a><br>
    <a href="3.php"><img src="immagini/button3.png" width="50" height="131"></a><br>
    <a href="4.php"><img src="immagini/button4.png" width="50" height="131"></a><br>
    <div class=iframe id=iframe><iframe src="post.php" name="iframe" height="92%" width="310%" frameborder="0"></iframe></div>
</body>
</html>

Pagina che l'iframe contiene:
HTML:
<?php
session_start();
ob_start();
function processText($text) {
    $text = strip_tags($text);
    $text = trim($text);
    $text = htmlspecialchars($text);
    return $text;
}
?>
<html>
    <head>
        <style>
            body{
                overflow:scroll;
            }
            #post{
                border:3px outset #898C8A;
                width:500px;
            }
            #barra{
                width:100%;
                height:25;
                background-color:#92CEE0;
            }
            #from{
                float:left;
                position:relative;
            }
            #oradata{
                float:right;
                margin:5px;
                position:relative;
            }
            #testo{
                color:green;
                position:center;
                margin:10px;
            }
            #titolo{
                float:left;
                position:fixed;
                left:30%;
            }
            #new_post{
                float:right;
            }
            #tutti_post{
                position:fixed;
                margin-top:10%;
                margin-left:20%;
            }
        </style>
        <link rel="stylesheet" href="stili/index.style.css" type="text/css">
    </head>
    <body>
        <center><div id="titolo"><font color="green" size="7"><strong>Ultimi post</strong></font></div>
        <div id="new_post"><form action=new_post.php method=POST><input type=submit value='Nuovo post' ></form></div>
        <div id="tutti_post">
<?php
include('db_conn.php');
$user = $_SESSION['login_effettuato'];
$query = "SELECT * FROM `post` WHERE `from` = '" . $user . "'";
$result = mysql_query($query);
if (mysql_num_rows($result) == '0'){
    echo "<font color=green size=5><strong>Nessun post pubblicato.<br>Premi il pulsante &quot;Nuovo post&quot; per pubblicare nuovi post</strong></font><br><br><br><br>";
}else{
    while ($row = mysql_fetch_array($result)){
    echo "<div id=post><div id=barra><div id=from>Post inviato da: <font color=red>" . $row['from'] . "</font></div><div id=oradata><font size=1 color=gray>" . $row['ora'] . ", " . $row['data'] . "</font></div></div><div id=testo>" . $row['contenuto'] . "</div></div><br>";
}
}
?></div><br><br>
        </center>
    </body>
</html>
 
Ultima modifica di un moderatore:

Max 1

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
29 Feb 2012
4.449
338
83
Prova così:
HTML:
<iframe src="post.php" name="iframe" height="92%" width="310%" frameborder="0" scrolling="auto" ></iframe>





.
 
Ultima modifica di un moderatore:
Discussioni simili
Autore Titolo Forum Risposte Data
I Sto progettando nuovi siti utilizzando bootstrap e devo dire funziona bene, l'unico problema e la maschera -moz- HTML e CSS 0
K Problema form update PHP 2
O problema con dvr dahua xvr5116 IP Cam e Videosorveglianza 0
S Problema nel ciclare un json Javascript 0
G Problema con Xampp Web Server 1
andrea barletta Problema con miniature comandi Photoshop 0
I problema con alice Posta Elettronica 0
K Problema Inner join PHP 1
F firefox problema http Linux e Software 0
N Problema con position absolute e overflow HTML e CSS 4
E Problema jquery Success jQuery 2
L Problema con inner join PHP 11
K [php] Problema con inner join PHP 4
E problema selezione sfumata Photoshop 2
K [PHP] Problema con variabili concatenate. PHP 1
A Problema filtro fluidifica Photoshop Photoshop 1
H Problema Bordi Scontorno Photoshop 1
O problema con query PHP 4
R Problema installazione Realtek WiFi USB rtl8821 Reti LAN e Wireless 0
I problema con 2 account Posta Elettronica 1
L problema collegamento file css con html HTML e CSS 1
Y Problema percorso file in rete PHP 1
N Problema SEO "L'URL non si trova su Google" SEO e Posizionamento 4
E Problema accesso a file con app sviluppata con MIT APP INVENTOR 2 Sviluppo app per Android 0
P Problema acquisizione clienti Webdesign e Grafica 1
F NetBeans problema creazione progetto Java Windows e Software 0
M Problema con Try Catch PHP 0
C problema seo + cerco esperto SEO e Posizionamento 11
Sergio Unia Problema con gli eventi del mouse su una data table: Javascript 2
T PROBLEMA CON SESSIONI PHP 3
A Problema, non so, di scale() o transform, oppure altro? HTML e CSS 0
T ALTRO PROBLEMA CON ARRAY PHP PHP 1
R problema con else PHP 0
T PROBLEMA CON ARRAY PHP 8
L problema con query select PHP 2
R Problema query con ricerca id numerico PHP 2
F Problema con risposta PHP 0
S problema con recupero dati tabella mysql PHP 2
Z Problema con il mio tp-l i nk Reti LAN e Wireless 1
I PROBLEMA: Sostituzione sito XAMPP E-Commerce 0
T problema data 30/11/-1 PHP 0
L Problema RAM con Tomcat 8 Apache 0
napuleone problema con sort e asort PHP 4
Y Problema incolonnamento tabella PHP 7
S problema salvataggio immagini Photoshop 0
Z Problema con INT MySQL PHP 1
Z Problema database MySQL con XAMPP PHP 0
M Problema con controllo form in real time jQuery 6
D problema php mysql PHP 1
D problema php mysql PHP 1

Discussioni simili